zsh: enable, set for qenya, add config
This commit is contained in:
parent
42ce170014
commit
3bed356294
|
@ -5,5 +5,6 @@
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
./openssh.nix
|
./openssh.nix
|
||||||
./security.nix
|
./security.nix
|
||||||
|
./zsh.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
|
@ -11,6 +11,7 @@ in
|
||||||
"networkmanager" # UI wifi configuration
|
"networkmanager" # UI wifi configuration
|
||||||
"dialout" # access to serial ports
|
"dialout" # access to serial ports
|
||||||
];
|
];
|
||||||
|
shell = pkgs.zsh;
|
||||||
openssh.authorizedKeys.keys = keys.users.qenya;
|
openssh.authorizedKeys.keys = keys.users.qenya;
|
||||||
uid = 1001;
|
uid = 1001;
|
||||||
};
|
};
|
||||||
|
|
9
common/zsh.nix
Normal file
9
common/zsh.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ config, lib, pkgs,... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
environment = {
|
||||||
|
shells = with pkgs; [ zsh ];
|
||||||
|
pathsToLink = [ "/share/zsh" ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -36,6 +36,7 @@
|
||||||
formatting.command = [ "nixpkgs-fmt" ];
|
formatting.command = [ "nixpkgs-fmt" ];
|
||||||
};
|
};
|
||||||
"terminal.integrated.allowChords" = false;
|
"terminal.integrated.allowChords" = false;
|
||||||
|
"terminal.integrated.defaultProfile.linux" = "zsh";
|
||||||
"workbench.colorTheme" = "SynthWave '84";
|
"workbench.colorTheme" = "SynthWave '84";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
31
home/zsh.nix
Normal file
31
home/zsh.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
autosuggestion.enable = true;
|
||||||
|
syntaxHighlighting.enable = true;
|
||||||
|
dotDir = ".config/zsh";
|
||||||
|
|
||||||
|
shellAliases = {
|
||||||
|
ll = "ls -l";
|
||||||
|
};
|
||||||
|
|
||||||
|
history = {
|
||||||
|
size = 10000;
|
||||||
|
path = "${config.xdg.dataHome}/zsh/history";
|
||||||
|
ignorePatterns = [ "rm *" "pkill *" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
oh-my-zsh = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [ "git" "sudo" ];
|
||||||
|
theme = "agnoster";
|
||||||
|
};
|
||||||
|
|
||||||
|
envExtra = ''
|
||||||
|
DEFAULT_USER=qenya
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
|
@ -5,6 +5,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
../../home/cli.nix
|
../../home/cli.nix
|
||||||
../../home/git.nix
|
../../home/git.nix
|
||||||
|
../../home/zsh.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.stateVersion = "23.11";
|
home.stateVersion = "23.11";
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
../../home/git.nix
|
../../home/git.nix
|
||||||
../../home/gnome
|
../../home/gnome
|
||||||
../../home/vscode.nix
|
../../home/vscode.nix
|
||||||
|
../../home/zsh.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = (with pkgs; [
|
home.packages = (with pkgs; [
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
../../home/cli.nix
|
../../home/cli.nix
|
||||||
../../home/git.nix
|
../../home/git.nix
|
||||||
../../home/tmux.nix
|
../../home/tmux.nix
|
||||||
|
../../home/zsh.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.stateVersion = "23.11";
|
home.stateVersion = "23.11";
|
||||||
|
|
Loading…
Reference in a new issue