From 60880618aa825c44905f37bdab896001743fd9c9 Mon Sep 17 00:00:00 2001 From: Filip Hoffmann Date: Tue, 28 Jan 2025 10:44:30 +0100 Subject: [PATCH] zsh --- system/configuration.nix | 1 + system/user.nix | 5 +++-- system/zsh.nix | 3 +++ user/home.nix | 1 + user/zsh.nix | 15 +++++++++++++++ 5 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 system/zsh.nix create mode 100644 user/zsh.nix diff --git a/system/configuration.nix b/system/configuration.nix index b090a2e..ba88d1c 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -21,6 +21,7 @@ in { ./user.nix ./nix.nix ./flatpak.nix + ./zsh.nix nvidia ./${systemSettings.displayManager}.nix diff --git a/system/user.nix b/system/user.nix index 38439d9..562f134 100644 --- a/system/user.nix +++ b/system/user.nix @@ -1,7 +1,8 @@ -{userSettings, ...}: { +{userSettings, pkgs, ...}: { users.users.${userSettings.username} = { isNormalUser = true; description = userSettings.fullName; extraGroups = userSettings.groups; + users.defaultUserShell = pkgs.zsh; }; -} \ No newline at end of file +} diff --git a/system/zsh.nix b/system/zsh.nix new file mode 100644 index 0000000..50ec528 --- /dev/null +++ b/system/zsh.nix @@ -0,0 +1,3 @@ +{...}: { + programs.zsh.enable = true; +} diff --git a/user/home.nix b/user/home.nix index 79f7008..96a7767 100644 --- a/user/home.nix +++ b/user/home.nix @@ -11,6 +11,7 @@ ./nvf.nix ./themes.nix ./spotify.nix + ./zsh.nix ]; # Home Manager needs a bit of information about you and the paths it should # manage. diff --git a/user/zsh.nix b/user/zsh.nix new file mode 100644 index 0000000..626dec2 --- /dev/null +++ b/user/zsh.nix @@ -0,0 +1,15 @@ +{pkgs, ...}: { + programs.zsh = { + enable = true; + enableCompletion = true; + autosuggestions.enable = true; + syntaxHighlighting.enable = true; + plugins = [ + { + name = "powerlevel10k"; + src = pkgs.zsh-powerlevel10k; + file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme"; + } + ]; + }; +} -- 2.51.2