feat: move zsh config to home-manager
This commit is contained in:
parent
4f1fa980ed
commit
936959b35f
7 changed files with 55 additions and 16 deletions
|
|
@ -28,6 +28,7 @@
|
|||
./easyeffects.nix
|
||||
./packages.nix
|
||||
./alacritty.nix
|
||||
./zsh.nix
|
||||
# inputs.catppuccin.nixosModules.catppuccin
|
||||
];
|
||||
|
||||
|
|
|
|||
41
home/zsh.nix
Normal file
41
home/zsh.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
|
||||
autocd = true;
|
||||
shellAliases = {
|
||||
os-update = "sudo nixos-rebuild switch --flake \".#$HOST\" --log-format internal-json -v |& nom --json";
|
||||
};
|
||||
|
||||
autosuggestion = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
history = {
|
||||
append = true;
|
||||
expireDuplicatesFirst = true;
|
||||
};
|
||||
|
||||
syntaxHighlighting = {
|
||||
enable = true;
|
||||
|
||||
highlighters = [
|
||||
"brackets"
|
||||
];
|
||||
};
|
||||
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
|
||||
plugins = [
|
||||
"git"
|
||||
"sudo"
|
||||
"virtualenv"
|
||||
"safe-paste"
|
||||
"timer"
|
||||
];
|
||||
|
||||
theme = "agnoster";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -66,10 +66,11 @@
|
|||
environment.systemPackages = with pkgs; [
|
||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||
# wget
|
||||
google-chrome
|
||||
fprintd
|
||||
];
|
||||
|
||||
programs.zsh.enable = true;
|
||||
|
||||
environment.sessionVariables = {
|
||||
NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,9 +3,10 @@
|
|||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
./fingerprint.nix
|
||||
./shell.nix
|
||||
./fonts.nix
|
||||
./wayland.nix
|
||||
./greetd.nix
|
||||
./power-profiles.nix
|
||||
./environment.nix
|
||||
];
|
||||
}
|
||||
3
modules/environment.nix
Normal file
3
modules/environment.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
environment.pathsToLink = [ "/share/zsh" ];
|
||||
}
|
||||
6
modules/fonts.nix
Normal file
6
modules/fonts.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
fonts.packages = with pkgs; [
|
||||
nerdfonts
|
||||
];
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
programs.zsh.enable = true;
|
||||
programs.zsh.ohMyZsh.enable = true;
|
||||
programs.zsh.ohMyZsh.theme = "agnoster";
|
||||
|
||||
environment.shellAliases = {
|
||||
os-update = "sudo nixos-rebuild switch --flake \".#$HOST\" --log-format internal-json -v |& nom --json";
|
||||
};
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
nerdfonts
|
||||
];
|
||||
}
|
||||
Loading…
Reference in a new issue