Added zsh

This commit is contained in:
Tibo De Peuter 2023-03-24 11:15:51 +01:00
parent 878656d2ec
commit 16f489be0d
5 changed files with 79 additions and 11 deletions

6
nixos/flake.lock generated
View file

@ -64,11 +64,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1679318992,
"narHash": "sha256-uoj5Oy6hruIHuxzfQZtcalObe5kPrX9v+ClUMFEOzmE=",
"lastModified": 1679472241,
"narHash": "sha256-VK2YDic2NjPvfsuneJCLIrWS38qUfoW8rLLimx0rWXA=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e2c97799da5f5cd87adfa5017fba971771e123ef",
"rev": "9ef6e7727f4c31507627815d4f8679c5841efb00",
"type": "github"
},
"original": {

View file

@ -42,12 +42,6 @@
};
modules = [
./users/tdpeuter/home.nix
{
home = {
username = "tdpeuter";
homeDirectory = "/home/tdpeuter";
};
}
];
};
};
@ -60,6 +54,6 @@
inherit system;
modules = [ ./hosts/Tibo-NixTest ];
};
};
};
};
}

View file

@ -112,6 +112,7 @@
packages = with pkgs; [
home-manager
];
shell = pkgs.zsh;
};
# Allow unfree packages

View file

@ -1,6 +1,9 @@
{ inputs, lib, config, pkgs, ... }:
{
# Check documentation at
# https://rycee.gitlab.io/home-manager/options.html
imports = [
];
@ -10,7 +13,7 @@
# paths it should manage.
username = "tdpeuter";
homeDirectory = "/home/tdpeuter";
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
@ -46,6 +49,9 @@
# Software Engineering Lab 1
android-studio
# Fonts
font-awesome_5 # Vifm and zsh dependency
];
file = {
@ -54,6 +60,7 @@
".vim".source = ../../../stow/vim/.vim;
".vimrc".source = ../../../stow/vim/.vimrc;
".config/zellij".source = ../../../stow/zellij/.config/zellij;
".oh-my-zsh".source = ../../../stow/zsh/.oh-my-zsh;
};
};
@ -72,6 +79,27 @@
};
gpg.enable = true;
zsh = {
enable = true;
oh-my-zsh = {
enable = true;
custom = "$HOME/.oh-my-zsh";
plugins = [ "dirhistory" "git" "screen" ];
theme = "mrfortem";
};
plugins = [
{
name = "cmdtime";
src = pkgs.fetchFromGitHub {
owner = "tom-auger";
repo = "cmdtime";
rev = "ffc72641dcfa0ee6666ceb1dc712b61be30a1e8b";
hash = "sha256-v6wCfNoPXDD3sS6yUYE6lre8Ir1yJcLGoAW3O8sUOCg=";
};
}
];
};
};