Files
nixos/home/common.nix
2025-09-17 11:31:58 -04:00

192 lines
3.1 KiB
Nix

{ config, pkgs, lib, inputs, ... }:
{
home.file.".local/usr/bin" = {
source = ./.local/usr/bin;
recursive = true;
executable = true;
};
home.file.".local/usr/lib/blightmud" = {
source = ./.local/usr/lib/blightmud;
recursive = true;
executable = true;
};
home.file.".irssi" = {
source = ./.irssi;
recursive = true;
executable = true;
};
home.file.".config/tmuxinator" = {
source = ./.config/tmuxinator;
recursive = true;
};
home.file.".ssh/allowed_signers".text = ''
* ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH8P/3yzsruekSaZ9b+yk429VTcfCtI1j8jnkNbPAgnr th3r00t@nixos
'';
imports = [
../modules/shells.nix
../modules/tmux.nix
../modules/ranger.nix
inputs.nixvim.homeModules.nixvim
../modules/nixvim/nixvim.nix
];
home.packages = with pkgs; [
autossh
elinks
fastfetch
ranger
mpv
zip
unzip
xz
p7zip
ripgrep
jq
ripgrep
eza
fzf
tmux
cowsay
lolcat
fortune
gnused
gnutar
gnupg
hugo
bat
which
nix-output-monitor
devenv
direnv
dotenv-cli
irssi
luarocks
lua5_1
lua-language-server
basedpyright
go
nodejs
uv
readline
cachix
sqlite
vifm-full
zoxide
(
python313.withPackages (
python-pkgs:
[
python-pkgs.prompt_toolkit
python-pkgs.pygments
python-pkgs.pynvim
python-pkgs.pudb
python-pkgs.ptpython
python-pkgs.ipython
python-pkgs.pillow
]
)
)
pyenv
# neovim provided by nixvim
zig
syncthing
lazygit
gopls
pyright
ncurses
rustup
wayvnc
gvfs
inetutils
sqlitebrowser
claude-code
marksman
unrar
httpie
];
programs = {
neovim.plugins = [
pkgs.vimPlugins.nvim-treesitter.withAllGrammars
pkgs.VimPlugins.coc-nvim
];
taskwarrior = {
enable = true;
};
fzf = {
enable = true;
tmux.enableShellIntegration = true;
enableZshIntegration = true;
colors = {
fg = "#d0d0d0";
bg = "#24283b";
hl = "#5f87af";
"fg+" = "#d0d0d0";
"bg+" = "#414868";
"hl+" = "#5fd7ff";
info = "#afaf87";
prompt = "#d7005f";
pointer = "#af5fff";
marker = "#87ff00";
spinner = "#af5fff";
header = "#87afaf";
};
};
git = {
enable = true;
userName = "th3r00t";
userEmail = "tty303@proton.me";
extraConfig = {
commit.gpgSign = true;
gpg.format = "ssh";
gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers";
user.signingkey = "~/.ssh/id_ed25519.pub";
};
};
direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv.enable = true;
};
eza = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
};
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";
};
};
};
};
services.syncthing = {
enable = true;
guiAddress = "0.0.0.0:8384";
};
}