restructured and optimized content
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# This is your home-manager configuration file
|
||||
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
|
||||
|
||||
{ inputs, outputs, lib, config, pkgs, username, useremail, ... }: {
|
||||
{ inputs, outputs, lib, config, pkgs, username, useremail, sysversion, ... }: {
|
||||
|
||||
home = {
|
||||
inherit username;
|
||||
@@ -13,11 +13,8 @@
|
||||
];
|
||||
};
|
||||
|
||||
# Enable home-manager and git
|
||||
# Enable git
|
||||
programs = {
|
||||
# home-manager.enable = true;
|
||||
# git.enable = true;
|
||||
|
||||
git = {
|
||||
enable = true;
|
||||
|
||||
@@ -60,6 +57,25 @@
|
||||
shellAliases = { };
|
||||
};
|
||||
|
||||
zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
shellAliases = {
|
||||
la = "ls -la";
|
||||
ll = "ls -l";
|
||||
edit = "sudo -e";
|
||||
update = "sudo nixos-rebuild switch";
|
||||
};
|
||||
|
||||
history.size = 10000;
|
||||
history.ignoreAllDups = true;
|
||||
history.path = "$HOME/.zsh_history";
|
||||
history.ignorePatterns = ["rm *" "pkill *" "cp *"];
|
||||
};
|
||||
|
||||
vim = {
|
||||
enable = true;
|
||||
plugins = with pkgs.vimPlugins; [ vim-airline ];
|
||||
@@ -106,5 +122,5 @@
|
||||
systemd.user.startServices = "sd-switch";
|
||||
|
||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||
home.stateVersion = "23.05";
|
||||
home.stateVersion = sysversion;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user