2024-07-14 19:47:23 +02:00
|
|
|
{ lib, pkgs, ... }: let
|
|
|
|
|
username = "khais";
|
|
|
|
|
in {
|
2024-07-14 16:41:22 +02:00
|
|
|
home = {
|
|
|
|
|
packages = with pkgs; [
|
2024-07-14 16:45:11 +02:00
|
|
|
htop neofetch
|
2024-07-14 16:41:22 +02:00
|
|
|
];
|
|
|
|
|
|
2024-07-14 19:39:11 +02:00
|
|
|
file = {
|
2024-07-14 19:47:23 +02:00
|
|
|
"hello.sh" = {
|
|
|
|
|
text = ''
|
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
2024-07-14 19:48:08 +02:00
|
|
|
echo 'Hello, ${username}!'
|
2024-07-14 19:47:23 +02:00
|
|
|
echo '*slaps roof* This script can fit so many lines in it!'
|
|
|
|
|
'';
|
|
|
|
|
executable = true;
|
|
|
|
|
};
|
2024-07-14 19:39:11 +02:00
|
|
|
};
|
|
|
|
|
|
2024-07-14 19:47:23 +02:00
|
|
|
inherit username;
|
|
|
|
|
homeDirectory = "/home/${username}";
|
2024-07-14 16:41:22 +02:00
|
|
|
|
2024-07-14 16:42:45 +02:00
|
|
|
stateVersion = "23.11";
|
2024-07-14 16:41:22 +02:00
|
|
|
};
|
2024-07-14 19:52:35 +02:00
|
|
|
|
|
|
|
|
programs.neovim = {
|
|
|
|
|
enable = true;
|
|
|
|
|
defaultEditor = true;
|
|
|
|
|
viAlias = true;
|
|
|
|
|
vimAlias = true;
|
|
|
|
|
vimdiffAlias = true;
|
|
|
|
|
};
|
2024-07-14 20:01:01 +02:00
|
|
|
|
|
|
|
|
programs.git = {
|
|
|
|
|
enable = true;
|
|
|
|
|
userEmail = "khais.colin@gmail.com";
|
|
|
|
|
userName = "Khaïs COLIN";
|
|
|
|
|
# better diffs
|
|
|
|
|
delta.enable = true;
|
|
|
|
|
};
|
2024-07-14 20:06:22 +02:00
|
|
|
|
|
|
|
|
programs.zsh = {
|
|
|
|
|
enable = true;
|
|
|
|
|
enableVteIntegration = true;
|
|
|
|
|
shellAliases = {
|
|
|
|
|
gc = "git commit -v";
|
|
|
|
|
ga = "git add";
|
|
|
|
|
gst = "git status";
|
|
|
|
|
gp = "git push";
|
|
|
|
|
gd = "git diff";
|
|
|
|
|
};
|
|
|
|
|
};
|
2024-07-14 16:41:22 +02:00
|
|
|
}
|