add zsh and more neovim stuff
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
settings.PasswordAuthentication = false;
|
||||
settings.KbdInteractiveAuthentication = false;
|
||||
settings.PermitRootLogin = "no";
|
||||
settings.X11Forwarding = true;
|
||||
};
|
||||
|
||||
users.users.anon.openssh.authorizedKeys.keys = [
|
||||
|
||||
@@ -9,13 +9,29 @@
|
||||
};
|
||||
useUserPackages = true;
|
||||
users.anon = {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
enableAutosuggestions = true;
|
||||
shellAliases = {
|
||||
ll = "ls -l";
|
||||
update = "sudo nixos-rebuild switch";
|
||||
};
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [ "git" ];
|
||||
theme = "eastwood";
|
||||
};
|
||||
};
|
||||
home.stateVersion = "23.05";
|
||||
};
|
||||
};
|
||||
|
||||
programs.zsh.enable = true;
|
||||
users.users.anon = {
|
||||
isNormalUser = true;
|
||||
description = "anon";
|
||||
shell = pkgs.zsh;
|
||||
extraGroups = [ "networkmanager" "wheel" "docker" ];
|
||||
packages = with pkgs; [
|
||||
firefox
|
||||
|
||||
@@ -2,12 +2,43 @@
|
||||
home-manager.users.anon = { pkgs, ...}: {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
(nvim-treesitter.withAllGrammars)
|
||||
];
|
||||
extraPackages = with pkgs;
|
||||
[];
|
||||
extraConfig = ''
|
||||
set autoindent expandtab tabstop=4 shiftwidth=4
|
||||
set clipboard=unnamed
|
||||
syntax on
|
||||
set cc=80
|
||||
colorscheme habamax
|
||||
set list
|
||||
set listchars=tab:→\ ,space:·,nbsp:␣,trail:•,precedes:«,extends:»
|
||||
'';
|
||||
coc.enable = true;
|
||||
coc.settings = ''
|
||||
"suggest.noselect" = true;
|
||||
"suggest.enablePreview" = true;
|
||||
"suggest.enablePreselect" = false;
|
||||
"suggest.disableKind" = true;
|
||||
"languageserver": {
|
||||
"nix": {
|
||||
"command": "${pkgs.nil}/bin/nil",
|
||||
"filetypes": ["nix"],
|
||||
"rootPatterns": ["flake.nix"],
|
||||
// Uncomment these to tweak settings.
|
||||
// "settings": {
|
||||
// "nil": {
|
||||
// "formatting": { "command": ["nixpkgs-fmt"] }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user