From 647d4b2d9a151d2c669afc201e611b84b2372afc Mon Sep 17 00:00:00 2001 From: Gustav Bruhn Date: Tue, 18 Mar 2025 20:31:13 +0100 Subject: [PATCH] 19 current 2025-03-18 20:31:11 25.05.20250315.c80f6a7 6.12.19 * --- hosts/framework/configuration.nix | 4 +++- hosts/framework/home.nix | 1 + modules/home-manager/zsh.nix | 13 +++++++++++++ update.sh | 6 +++--- 4 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 modules/home-manager/zsh.nix 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 -