First commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
# /home/henrov/nixos/modules/home-manager/shell/zsh.nix
|
||||
#
|
||||
# Home Manager Zsh + Kitty baseline.
|
||||
# Configuration is sourced from:
|
||||
# ~/nixos/files/conf/terminal/aliases.conf
|
||||
# ~/nixos/files/conf/terminal/zsh.conf
|
||||
# ~/nixos/files/conf/terminal/kitty.conf
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
# From: nixos/modules/home-manager/shell -> nixos/files/conf/terminal
|
||||
confDir = ../../../files/conf/terminal;
|
||||
in
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
kitty
|
||||
];
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
dotDir = config.home.homeDirectory;
|
||||
|
||||
# Load shared, editable snippets.
|
||||
initContent = ''
|
||||
# Shared aliases
|
||||
if [ -f "${confDir}/aliases.conf" ]; then
|
||||
source "${confDir}/aliases.conf"
|
||||
fi
|
||||
|
||||
# Shared zsh config snippets
|
||||
if [ -f "${confDir}/zsh.conf" ]; then
|
||||
source "${confDir}/zsh.conf"
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
||||
programs.kitty.enable = true;
|
||||
xdg.configFile."kitty/kitty.conf".source = confDir + "/kitty.conf";
|
||||
}
|
||||
Reference in New Issue
Block a user