home: bash -> shell + zsh + oh-my-posh
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run

aly: switch to zsh
This commit is contained in:
Aly Raffauf 2024-08-04 11:47:57 -04:00
parent 1fb1be721c
commit ea4cfea175
7 changed files with 32 additions and 18 deletions

View file

@ -2,18 +2,18 @@
imports = [
./alacritty
./backblaze
./bash
./chromium
./emacs
./fastfetch
./firefox
./fuzzel
./helix
./kitty
./keepassxc
./kitty
./librewolf
./nemo
./rofi
./shell
./swaylock
./thunar
./tmux

View file

@ -4,7 +4,7 @@
pkgs,
...
}: {
config = lib.mkIf config.ar.home.apps.bash.enable {
config = lib.mkIf config.ar.home.apps.shell.enable {
home.shellAliases = {
cat = lib.getExe pkgs.bat;
grep = lib.getExe config.programs.ripgrep.package;
@ -45,10 +45,30 @@
tmux.enableShellIntegration = true;
};
oh-my-posh = {
enable = true;
useTheme = "zash";
};
ripgrep = {
enable = true;
arguments = ["--pretty"];
};
zsh = {
enable = true;
autocd = true;
autosuggestion.enable = true;
enableCompletion = true;
enableVteIntegration = true;
historySubstringSearch.enable = true;
history = {
expireDuplicatesFirst = true;
extended = true;
ignoreAllDups = true;
};
};
};
};
}

View file

@ -27,8 +27,6 @@ in {
};
};
bash.enable = lib.mkEnableOption "Bash defaults.";
chromium = {
enable = lib.mkEnableOption "Chromium-based browser with default extensions.";
package = lib.mkPackageOption pkgs "brave" {};
@ -61,6 +59,7 @@ in {
};
rofi.enable = lib.mkEnableOption "Rofi launcher.";
shell.enable = lib.mkEnableOption "Shell with defaults.";
swaylock.enable = lib.mkEnableOption "Swaylock screen locker.";
thunar.enable = lib.mkOption {

View file

@ -54,7 +54,7 @@ in {
extraConfig = {
color.ui = true;
core.editor = "${lib.getExe unstable.zed-editor} --wait";
core.editor = "${lib.getExe config.programs.vscode.package} --wait";
github.user = "alyraffauf";
push.autoSetupRemote = true;
};
@ -63,11 +63,6 @@ in {
gitui.enable = true;
home-manager.enable = true;
oh-my-posh = {
enable = true;
useTheme = "zash";
};
rbw = {
enable = true;
package = pkgs.rbw;
@ -90,13 +85,13 @@ in {
keyFile = config.age.secrets.backblazeKey.path;
};
bash.enable = true;
chromium.enable = true;
fastfetch.enable = true;
firefox.enable = true;
helix.enable = true;
keepassxc.enable = true;
kitty.enable = true;
shell.enable = true;
tmux.enable = true;
vsCodium.enable = true;
yazi.enable = true;

View file

@ -3,11 +3,7 @@ self: {
lib,
pkgs,
...
}: let
unstable = import self.inputs.nixpkgs-unstable {
system = pkgs.system;
};
in {
}: {
imports = [self.homeManagerModules.default];
home = {
@ -64,10 +60,10 @@ in {
ar.home = {
apps = {
bash.enable = true;
chromium.enable = true;
firefox.enable = true;
kitty.enable = true;
shell.enable = true;
vsCodium.enable = true;
};

View file

@ -1,6 +1,7 @@
{
config,
lib,
pkgs,
self,
...
}: {
@ -29,6 +30,7 @@
];
};
shell = pkgs.zsh;
uid = 1000;
};
};

View file

@ -5,6 +5,8 @@ self: {
./options.nix
];
programs.zsh.enable = true;
users = {
mutableUsers = false;