Overhaul luna complete
This commit is contained in:
parent
06f5971965
commit
6f9fdca876
110 changed files with 2408 additions and 2129 deletions
5
modules/terminal/default.nix
Normal file
5
modules/terminal/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{inputs, ...}: {
|
||||
imports = [
|
||||
./zsh.nix
|
||||
];
|
||||
}
|
||||
54
modules/terminal/zsh.nix
Normal file
54
modules/terminal/zsh.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf mkOption types;
|
||||
cfg = config.horseman.terminal.zsh;
|
||||
in {
|
||||
options = {
|
||||
horseman.terminal.zsh = {
|
||||
enable = mkEnableOption "The ZSH shell and plugins for it";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
environment.shells = with pkgs; [zsh];
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
|
||||
histSize = 10000;
|
||||
|
||||
shellAliases = {
|
||||
clone-dotfiles = "cp -r /home/horseman/nix-config/config/dotfiles/.\* /home/horseman/";
|
||||
rebuild = "clone-dotfiles && sudo nixos-rebuild switch --flake";
|
||||
update = "sudo nix flake update && rebuild";
|
||||
compose = "sudo docker compose";
|
||||
wolpc = "wakeonlan D8:5E:D3:A8:B1:0A";
|
||||
capture-config = "nix run github:pjones/plasma-manager > ~/nix-config/home-manager/plasma.nix";
|
||||
reboot-to-windows = "sudo efibootmgr -n 0000";
|
||||
mkdir = "mkdir -p";
|
||||
};
|
||||
|
||||
ohMyZsh = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
"git"
|
||||
"zsh-interactive-cd"
|
||||
"python"
|
||||
"git-auto-fetch"
|
||||
"wd"
|
||||
];
|
||||
theme = "jonathan";
|
||||
};
|
||||
|
||||
shellInit = "eval \"$(direnv hook zsh)\"";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue