2024-10-03 15:12:30 +03:00
|
|
|
{ pkgs, ... }:
|
2023-12-05 21:03:09 +03:00
|
|
|
|
|
|
|
{
|
2023-12-21 13:02:18 +03:00
|
|
|
home.username = "mrflos";
|
2024-10-03 15:12:30 +03:00
|
|
|
home.homeDirectory = "/home/mrflos";
|
|
|
|
home.stateVersion = "24.05"; # Please read the comment before changing.
|
2023-12-05 21:03:09 +03:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
ansible
|
2024-10-03 15:12:30 +03:00
|
|
|
atuin
|
2023-12-05 21:03:09 +03:00
|
|
|
bat
|
|
|
|
btop
|
2024-10-03 15:12:30 +03:00
|
|
|
cargo
|
2023-12-21 13:02:18 +03:00
|
|
|
catnip
|
2024-10-03 15:12:30 +03:00
|
|
|
cmatrix
|
2023-12-05 21:03:09 +03:00
|
|
|
coreutils
|
|
|
|
curl
|
|
|
|
dnsutils
|
|
|
|
emacs-nox
|
|
|
|
fd
|
|
|
|
findutils
|
2024-10-03 15:12:30 +03:00
|
|
|
fish
|
2023-12-05 21:03:09 +03:00
|
|
|
fzf
|
2024-10-03 15:12:30 +03:00
|
|
|
gcc
|
2023-12-05 21:03:09 +03:00
|
|
|
gnugrep
|
|
|
|
gnumake
|
|
|
|
gnupg
|
|
|
|
imagemagick
|
|
|
|
jq
|
|
|
|
git
|
|
|
|
glances
|
|
|
|
htop
|
|
|
|
lazygit
|
|
|
|
lsd
|
2024-10-03 15:12:30 +03:00
|
|
|
magic-wormhole
|
|
|
|
lua51Packages.lua
|
|
|
|
lua51Packages.luarocks
|
|
|
|
lua-language-server
|
2023-12-05 21:03:09 +03:00
|
|
|
mc
|
|
|
|
micro
|
|
|
|
mosh
|
|
|
|
mpd
|
2024-10-03 15:12:30 +03:00
|
|
|
mpv
|
2023-12-05 21:03:09 +03:00
|
|
|
neofetch
|
2024-10-03 15:12:30 +03:00
|
|
|
neovim
|
|
|
|
nil
|
2024-10-08 12:06:15 +03:00
|
|
|
nixd
|
2024-10-03 15:12:30 +03:00
|
|
|
nixfmt-rfc-style
|
|
|
|
nodejs_20
|
2023-12-05 21:03:09 +03:00
|
|
|
pandoc
|
|
|
|
pass
|
|
|
|
pciutils
|
2024-10-03 15:12:30 +03:00
|
|
|
php83
|
|
|
|
php83Packages.composer
|
2024-10-08 12:06:15 +03:00
|
|
|
php83Packages.php-cs-fixer
|
|
|
|
phpactor
|
2023-12-05 21:03:09 +03:00
|
|
|
pinentry
|
2024-10-03 15:12:30 +03:00
|
|
|
python312Packages.pip
|
2023-12-05 21:03:09 +03:00
|
|
|
ripgrep
|
|
|
|
slides
|
|
|
|
starship
|
2024-10-03 15:12:30 +03:00
|
|
|
symfony-cli
|
2024-10-08 12:06:15 +03:00
|
|
|
tailwindcss-language-server
|
2023-12-05 21:03:09 +03:00
|
|
|
tmux
|
|
|
|
tree
|
|
|
|
unzip
|
|
|
|
usbutils
|
|
|
|
wget
|
|
|
|
whois
|
|
|
|
wirelesstools
|
2024-10-03 15:12:30 +03:00
|
|
|
yarn
|
|
|
|
yazi
|
2023-12-05 21:03:09 +03:00
|
|
|
yt-dlp
|
|
|
|
zellij
|
2024-10-03 15:12:30 +03:00
|
|
|
zoxide
|
2023-12-05 21:03:09 +03:00
|
|
|
zola
|
|
|
|
zsh-autosuggestions
|
|
|
|
|
|
|
|
# fonts
|
|
|
|
(pkgs.nerdfonts.override { fonts = [ "Iosevka" ]; })
|
|
|
|
];
|
|
|
|
|
|
|
|
home.file = {
|
2024-10-03 15:12:30 +03:00
|
|
|
"./.config/kitty/" = {
|
|
|
|
source = ../dotfiles/kitty;
|
|
|
|
recursive = true;
|
|
|
|
};
|
2023-12-05 21:03:09 +03:00
|
|
|
|
2024-10-03 15:12:30 +03:00
|
|
|
"./.config/nvim/" = {
|
|
|
|
source = ../dotfiles/nvim;
|
|
|
|
recursive = true;
|
|
|
|
};
|
2023-12-05 21:03:09 +03:00
|
|
|
|
2024-10-03 15:12:30 +03:00
|
|
|
"./.config/lazygit/" = {
|
|
|
|
source = ../dotfiles/lazygit;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
"./.config/tmux/" = {
|
|
|
|
source = ../dotfiles/tmux;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
};
|
2023-12-05 21:03:09 +03:00
|
|
|
home.sessionVariables = {
|
|
|
|
EDITOR = "nvim";
|
|
|
|
};
|
2024-10-03 15:12:30 +03:00
|
|
|
home.sessionPath = [
|
|
|
|
"$HOME/.local/bin"
|
|
|
|
"$HOME/go/bin"
|
|
|
|
];
|
|
|
|
accounts.email.accounts = {
|
|
|
|
"mrflos@chmok.net" = {
|
|
|
|
realName = "Florian Schmitt";
|
|
|
|
userName = "mrflos@chmok.net";
|
|
|
|
address = "mrflos@chmok.net";
|
|
|
|
|
|
|
|
primary = true;
|
|
|
|
thunderbird = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
imap = {
|
|
|
|
host = "mail.infomaniak.com";
|
|
|
|
port = 993;
|
|
|
|
};
|
2023-12-05 21:03:09 +03:00
|
|
|
|
2024-10-03 15:12:30 +03:00
|
|
|
smtp = {
|
|
|
|
host = "mail.infomaniak.com";
|
|
|
|
port = 465;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
"mrflos@yeswiki.pro" = {
|
|
|
|
realName = "Florian Schmitt - Yeswiki.pro";
|
|
|
|
userName = "mrflos@yeswiki.pro";
|
|
|
|
address = "mrflos@yeswiki.pro";
|
|
|
|
|
|
|
|
thunderbird = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
imap = {
|
|
|
|
host = "mail.infomaniak.com";
|
|
|
|
port = 993;
|
|
|
|
};
|
|
|
|
|
|
|
|
smtp = {
|
|
|
|
host = "mail.infomaniak.com";
|
|
|
|
port = 465;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
"mrflos@mrflos.pw" = {
|
|
|
|
realName = "Florian Schmitt";
|
|
|
|
userName = "mrflos";
|
|
|
|
address = "mrflos@mrflos.pw";
|
|
|
|
|
|
|
|
primary = false;
|
|
|
|
thunderbird = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
imap = {
|
|
|
|
host = "mrflos.pw";
|
|
|
|
port = 993;
|
|
|
|
#tls.enable = true;
|
|
|
|
#tls.useStartTls = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
smtp = {
|
|
|
|
host = "mrflos.pw";
|
|
|
|
port = 587;
|
|
|
|
#tls.useStartTls = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
"contact@yeswiki.pro" = {
|
|
|
|
realName = "YesWiki.pro";
|
|
|
|
userName = "contact@yeswiki.pro";
|
|
|
|
address = "contact@yeswiki.pro";
|
|
|
|
|
|
|
|
primary = false;
|
|
|
|
thunderbird = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
imap = {
|
|
|
|
host = "mail.infomaniak.com";
|
|
|
|
port = 993;
|
|
|
|
};
|
|
|
|
|
|
|
|
smtp = {
|
|
|
|
host = "mail.infomaniak.com";
|
|
|
|
port = 465;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
"contact@yeswiki.net" = {
|
|
|
|
realName = "YesWiki.net";
|
|
|
|
userName = "contact@yeswiki.net";
|
|
|
|
address = "contact@yeswiki.net";
|
|
|
|
|
|
|
|
primary = false;
|
|
|
|
thunderbird = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
imap = {
|
|
|
|
host = "mail.infomaniak.com";
|
|
|
|
port = 993;
|
|
|
|
};
|
|
|
|
|
|
|
|
smtp = {
|
|
|
|
host = "mail.infomaniak.com";
|
|
|
|
port = 465;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-12-05 21:03:09 +03:00
|
|
|
|
|
|
|
programs = {
|
2024-10-03 15:12:30 +03:00
|
|
|
direnv = {
|
2023-12-05 21:03:09 +03:00
|
|
|
enable = true;
|
2024-10-03 15:12:30 +03:00
|
|
|
enableZshIntegration = true;
|
|
|
|
nix-direnv.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "Florian Schmitt";
|
|
|
|
userEmail = "mrflos@gmail.com";
|
|
|
|
aliases = {
|
|
|
|
fa = "fetch --all --tags --prune --recurse-submodules --force";
|
|
|
|
};
|
|
|
|
extraConfig = {
|
|
|
|
pull.rebase = true;
|
|
|
|
init.defaultBranch = "main";
|
|
|
|
core.editor = "nvim";
|
|
|
|
core.fileMode = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
neovim = {
|
|
|
|
defaultEditor = true;
|
2023-12-05 21:03:09 +03:00
|
|
|
viAlias = true;
|
|
|
|
vimAlias = true;
|
|
|
|
};
|
2024-10-03 15:12:30 +03:00
|
|
|
|
2023-12-05 21:03:09 +03:00
|
|
|
starship = {
|
|
|
|
enable = true;
|
2024-10-03 15:12:30 +03:00
|
|
|
settings = with builtins; fromTOML (readFile ../dotfiles/starship/starship.toml);
|
2023-12-05 21:03:09 +03:00
|
|
|
};
|
2024-10-03 15:12:30 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
2023-12-05 21:03:09 +03:00
|
|
|
zsh = {
|
|
|
|
enable = true;
|
2024-10-03 15:12:30 +03:00
|
|
|
autosuggestion.enable = true;
|
|
|
|
enableCompletion = true;
|
2023-12-05 21:03:09 +03:00
|
|
|
shellAliases = {
|
2024-10-03 15:12:30 +03:00
|
|
|
#tmux = "tmux -f ~/.config/tmux/tmux.conf attach || tmux -f ~/.config/tmux/tmux.conf new";
|
|
|
|
bunx = "bun --bun x";
|
|
|
|
g = "lazygit";
|
|
|
|
kdenix = "nix run github:pjones/plasma-manager --extra-experimental-features nix-command --extra-experimental-features flakes > /home/mrflos/Developpements/nixos-config/modules/home-plasma.nix";
|
2023-12-05 21:03:09 +03:00
|
|
|
icat = "kitty +kitten icat";
|
|
|
|
nixedit = "vi /etc/nixos";
|
|
|
|
nixupdate = "sudo nix-channel --update && sudo nixos-rebuild switch";
|
|
|
|
nixclean = "sudo nix-env --delete-generations old --profile /nix/var/nix/profiles/system && sudo /nix/var/nix/profiles/system/bin/switch-to-configuration switch && sudo nix-store --gc";
|
2024-10-03 15:12:30 +03:00
|
|
|
socks = "ssh -N -f -C -D 9090 mrflos@yunohost.yeswiki.net -p 6742";
|
|
|
|
yeswiki-updater = "cd /home/mrflos/Developpements/yeswiki-installer/ && sudo php yeswiki-updater.php";
|
|
|
|
vi = "nvim";
|
|
|
|
vim = "nvim";
|
2023-12-05 21:03:09 +03:00
|
|
|
};
|
2024-10-03 15:12:30 +03:00
|
|
|
initExtra = ''
|
|
|
|
export BUN_INSTALL="$HOME/.bun"
|
|
|
|
export PHP_CS_FIXER_IGNORE_ENV=1
|
|
|
|
export PATH="$HOME/.local/bin:$BUN_INSTALL/bin:$PATH"
|
|
|
|
eval "$(atuin init zsh)"
|
|
|
|
eval "$(zoxide init zsh)"
|
|
|
|
'';
|
2023-12-05 21:03:09 +03:00
|
|
|
oh-my-zsh = {
|
2024-10-03 15:12:30 +03:00
|
|
|
enable = true;
|
|
|
|
extraConfig = ''
|
|
|
|
zstyle :omz:plugins:ssh-agent helper ksshaskpass
|
|
|
|
zstyle :omz:plugins:ssh-agent agent-forwarding yes
|
|
|
|
zstyle :omz:plugins:ssh-agent lazy yes
|
|
|
|
'';
|
|
|
|
plugins = [
|
|
|
|
"git"
|
|
|
|
"ssh-agent"
|
|
|
|
];
|
|
|
|
# theme = "robbyrussell";
|
2023-12-05 21:03:09 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-10-03 15:12:30 +03:00
|
|
|
|
|
|
|
services.ssh-agent.enable = true;
|
|
|
|
programs.home-manager.enable = true;
|
2023-12-05 21:03:09 +03:00
|
|
|
}
|