reformat of files
This commit is contained in:
parent
abb9c5f946
commit
4dc5c2ffd5
6 changed files with 9 additions and 72 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
{...}: {
|
{...}: {
|
||||||
imports = [
|
imports = [
|
||||||
../../modules
|
../../modules
|
||||||
../../modules/boot/loader/systemd.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
config.horseman = {
|
config.horseman = {
|
||||||
|
|
@ -47,11 +46,10 @@
|
||||||
apps = {
|
apps = {
|
||||||
dev.enable = true;
|
dev.enable = true;
|
||||||
visual.enable = true;
|
visual.enable = true;
|
||||||
terminal.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
terminal = {
|
terminal = {
|
||||||
|
enable = true;
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
{...}: {
|
{...}: {
|
||||||
imports = [
|
imports = [
|
||||||
../../modules
|
../../modules
|
||||||
../../modules/boot/loader/grub.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
config.horseman = {
|
config.horseman = {
|
||||||
|
|
|
||||||
|
|
@ -57,12 +57,11 @@
|
||||||
apps = {
|
apps = {
|
||||||
dev.enable = true;
|
dev.enable = true;
|
||||||
visual.enable = true;
|
visual.enable = true;
|
||||||
terminal.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
terminal = {
|
terminal = {
|
||||||
|
enable = true;
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
timers = {
|
timers = {
|
||||||
wol.enable = true;
|
wol.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
./dev.nix
|
./dev.nix
|
||||||
|
|
||||||
./terminal.nix
|
./terminal.nix
|
||||||
|
./terminal/zsh.nix
|
||||||
|
|
||||||
./visual.nix
|
./visual.nix
|
||||||
./visual/firefox.nix
|
./visual/firefox.nix
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
{...}: {
|
|
||||||
imports = [
|
|
||||||
./zsh.nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@ -1,55 +0,0 @@
|
||||||
{
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit (lib) mkEnableOption mkIf;
|
|
||||||
cfg = config.horseman.terminal.zsh;
|
|
||||||
in {
|
|
||||||
options = {
|
|
||||||
horseman.terminal.zsh = {
|
|
||||||
enable = mkEnableOption "The ZSH shell and plugins for it";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
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 = "function _rebuild(){clone-dotfiles && sudo nixos-rebuild switch --flake \"$@\" && nix fmt *}; _rebuild";
|
|
||||||
update = "sudo nix flake update && git commit flake.lock -m 'Update flake.lock: $(date +%y-%m-%d)' && rebuild";
|
|
||||||
compose = "sudo docker compose";
|
|
||||||
wolpc = "wakeonlan D8:5E:D3:A8:B1:0A";
|
|
||||||
capture-config = "nix run github:pjones/plasma-manager > ~/nix-config/modules/wm/plasma/default.nix";
|
|
||||||
reboot-to-windows = "sudo efibootmgr -n 0000";
|
|
||||||
mkdir = "mkdir -p";
|
|
||||||
l = "ls -lAh --group-directories-first";
|
|
||||||
zip = "zip -r";
|
|
||||||
cat = "bat";
|
|
||||||
py = "python3";
|
|
||||||
};
|
|
||||||
|
|
||||||
ohMyZsh = {
|
|
||||||
enable = true;
|
|
||||||
plugins = [
|
|
||||||
"zsh-interactive-cd"
|
|
||||||
"git-auto-fetch"
|
|
||||||
"wd"
|
|
||||||
];
|
|
||||||
theme = "theme";
|
|
||||||
custom = "/home/horseman/nix-config/config/zsh";
|
|
||||||
};
|
|
||||||
|
|
||||||
shellInit = "eval \"$(direnv hook zsh)\"";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue