diff --git a/hosts/framework/configuration.nix b/hosts/framework/configuration.nix index 8e74377..f62296e 100644 --- a/hosts/framework/configuration.nix +++ b/hosts/framework/configuration.nix @@ -85,10 +85,12 @@ description = "Gustav Bruhn"; extraGroups = ["networkmanager" "wheel"]; packages = with pkgs; [ - # thunderbird ]; }; + # Set default shell + # users.defaultUserShell = pkgs.zsh; + home-manager = { extraSpecialArgs = {inherit inputs;}; users = { diff --git a/hosts/framework/home.nix b/hosts/framework/home.nix index 0bee8a2..e42ae4c 100644 --- a/hosts/framework/home.nix +++ b/hosts/framework/home.nix @@ -5,6 +5,7 @@ }: { imports = [ ../../modules/home-manager/helix.nix + ../../modules/home-manager/zsh.nix ]; # Home Manager needs a bit of information about you and the paths it should # manage. diff --git a/modules/home-manager/zsh.nix b/modules/home-manager/zsh.nix new file mode 100644 index 0000000..5d62d8f --- /dev/null +++ b/modules/home-manager/zsh.nix @@ -0,0 +1,13 @@ +{...}: { + programs.zsh = { + enable = true; + enableCompletion = true; + zplug = { + enable = true; + plugins = [ + {name = "zsh-users/zsh-autosuggestions";} + ]; + }; + syntaxHighlighting.enable = true; + }; +} diff --git a/update.sh b/update.sh index 9509499..d1fa98d 100644 --- a/update.sh +++ b/update.sh @@ -7,6 +7,9 @@ pushd ~/nixos/ alejandra . &>/dev/null \ || (alejandra . ; echo "formatting failed!" && exit 1) + +git add . + echo "Rebuilding" sudo nixos-rebuild switch --upgrade --flake . @@ -21,6 +24,3 @@ git commit -am "$current" git push popd - -notify-send -e "Nixos updated and pushed to git" --icon=software-update-avaiable -