87 lines
1.7 KiB
Nix
87 lines
1.7 KiB
Nix
{ lib, pkgs, inputs, ... }: let
|
|
username = "khais";
|
|
in {
|
|
home = {
|
|
packages = with pkgs; [
|
|
# system tools & bragging
|
|
htop neofetch
|
|
# remote working
|
|
remmina
|
|
# audio
|
|
audacity
|
|
# communication
|
|
discord
|
|
# passwords
|
|
bitwarden-desktop
|
|
# editors
|
|
zed-editor
|
|
# nixvim
|
|
inputs.nixvim-flake.packages.${pkgs.system}.default
|
|
];
|
|
|
|
file = {
|
|
"hello.sh" = {
|
|
text = ''
|
|
#!/usr/bin/env bash
|
|
|
|
echo 'Hello, ${username}!'
|
|
echo '*slaps roof* This script can fit so many lines in it!'
|
|
'';
|
|
executable = true;
|
|
};
|
|
|
|
# konsole configuration
|
|
".local/share/konsole/Nixos.profile".source = ./konsole/Nixos.profile;
|
|
};
|
|
|
|
inherit username;
|
|
homeDirectory = "/home/${username}";
|
|
|
|
stateVersion = "23.11";
|
|
};
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
# programs.nixvim = {
|
|
# enable = true;
|
|
# defaultEditor = true;
|
|
#
|
|
# viAlias = true;
|
|
# vimAlias = true;
|
|
# vimdiffAlias = true;
|
|
#
|
|
# clipboard = {
|
|
# providers.xsel.enable = true;
|
|
# register = "unnamedplus";
|
|
# };
|
|
# };
|
|
|
|
programs.git = {
|
|
enable = true;
|
|
userEmail = "khais.colin@gmail.com";
|
|
userName = "Khaïs COLIN";
|
|
# better diffs
|
|
diff-so-fancy.enable = true;
|
|
# set editor
|
|
extraConfig.core.editor = "nvim";
|
|
};
|
|
|
|
programs.zsh = {
|
|
enable = true;
|
|
enableVteIntegration = true;
|
|
prezto = {
|
|
enable = true;
|
|
};
|
|
shellAliases = {
|
|
gc = "git commit -v";
|
|
ga = "git add";
|
|
gst = "git status";
|
|
gp = "git push";
|
|
gd = "git diff";
|
|
gds = "git diff --staged";
|
|
|
|
vim = "nvim";
|
|
vi = "nvim";
|
|
};
|
|
};
|
|
}
|