From a8dfd2b7da93e38254f37c069705aad7b9685432 Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Thu, 22 Aug 2024 11:37:36 -0500 Subject: [PATCH] mac changes --- hosts/mac-nixos/configuration.nix | 2 +- hosts/mac-nixos/home.nix | 22 +++++++++++++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/hosts/mac-nixos/configuration.nix b/hosts/mac-nixos/configuration.nix index 9aa0c35..b5c2f62 100644 --- a/hosts/mac-nixos/configuration.nix +++ b/hosts/mac-nixos/configuration.nix @@ -65,7 +65,7 @@ users.users.matt = { isNormalUser = true; extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. - shell = pkgs.fish; + shell = pkgs.zsh; packages = with pkgs; [ firefox tree diff --git a/hosts/mac-nixos/home.nix b/hosts/mac-nixos/home.nix index b46a5f5..288e956 100644 --- a/hosts/mac-nixos/home.nix +++ b/hosts/mac-nixos/home.nix @@ -7,8 +7,28 @@ programs.home-manager.enable = true; programs = { - fish.enable = true; + fish.enable = false; java.enable = true; + + zsh = { + enable = true; + enableCompletion = true; + autosuggestion.enable = true; + syntaxHighlighting.enable = true; + + shellAliases = { + ll = "ls -alh"; + update = "sudo nixos-rebuild switch"; + nas-update = "nixos-rebuild switch --use-remote-sudo --target-host admin@jallen-nas.local --build-host localhost --flake ~/nix-config/flake.nix#jallen-nas"; + nas-ssh = "ssh admin@jallen-nas.local"; + }; + + oh-my-zsh = { + enable = true; + plugins = [ "git" ]; + theme = "fishy"; + }; + }; }; programs.git = {