🏡 home.nix getting a little closer to my setup
This commit is contained in:
parent
7550829ca0
commit
ae89d510f9
75
home.nix
75
home.nix
@ -8,13 +8,22 @@
|
|||||||
home.username = builtins.getEnv "USER";
|
home.username = builtins.getEnv "USER";
|
||||||
home.homeDirectory = builtins.getEnv "HOME";
|
home.homeDirectory = builtins.getEnv "HOME";
|
||||||
|
|
||||||
home.packages = [
|
xdg.configFile."starship.toml".source = ./home/.config/starship.toml;
|
||||||
pkgs.emacs
|
|
||||||
pkgs.git
|
home.packages = with pkgs; [
|
||||||
pkgs.htop
|
cmake
|
||||||
pkgs.pinentry
|
direnv
|
||||||
pkgs.pinentry-curses
|
docker
|
||||||
pkgs.ripgrep
|
docker-compose
|
||||||
|
git
|
||||||
|
htop
|
||||||
|
pinentry
|
||||||
|
ripgrep
|
||||||
|
sqlite
|
||||||
|
((emacsPackagesNgGen emacs).emacsWithPackages (epkgs: [
|
||||||
|
epkgs.vterm
|
||||||
|
]))
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
@ -24,39 +33,18 @@
|
|||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = "robbyrussell";
|
|
||||||
plugins = [
|
plugins = [
|
||||||
|
"docker"
|
||||||
"git"
|
"git"
|
||||||
"ssh-agent"
|
"ssh-agent"
|
||||||
"tmux"
|
"tmux"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
sessionVariables = {
|
||||||
starship = {
|
EDITOR = "vim";
|
||||||
enable = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
settings = {
|
|
||||||
character = {
|
|
||||||
success_symbol = "[»](bold green) ";
|
|
||||||
error_symbol = "[✗](bold red) ";
|
|
||||||
};
|
|
||||||
directory = {
|
|
||||||
fish_style_pwd_dir_length = 1;
|
|
||||||
truncation_length = 1;
|
|
||||||
};
|
|
||||||
gcloud = {
|
|
||||||
disabled = true;
|
|
||||||
};
|
|
||||||
hostname = {
|
|
||||||
ssh_only = false;
|
|
||||||
format = "[$hostname]($style):";
|
|
||||||
};
|
|
||||||
username = {
|
|
||||||
format = "[$user]($style)@";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
starship.enable = true;
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "James Walker";
|
userName = "James Walker";
|
||||||
@ -77,6 +65,13 @@
|
|||||||
|
|
||||||
tmux = {
|
tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
extraConfig = ''
|
||||||
|
set -g status-bg black
|
||||||
|
set -g status-fg white
|
||||||
|
'';
|
||||||
|
newSession = true;
|
||||||
|
shortcut = "o";
|
||||||
|
terminal = "screen-256color";
|
||||||
};
|
};
|
||||||
|
|
||||||
vim = {
|
vim = {
|
||||||
@ -85,13 +80,15 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
gpg-agent = {
|
lorri.enable = true;
|
||||||
enable = true;
|
gpg-agent = {
|
||||||
enableSshSupport = true;
|
enable = true;
|
||||||
extraConfig = ''
|
enableSshSupport = true;
|
||||||
allow-emacs-pinentry
|
extraConfig = ''
|
||||||
'';
|
allow-emacs-pinentry
|
||||||
};
|
allow-loopback-pinentry
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# This value determines the Home Manager release that your
|
# This value determines the Home Manager release that your
|
||||||
|
Loading…
x
Reference in New Issue
Block a user