feat: add zsh + git features, redesign shell
This commit is contained in:
23
features/git.nix
Normal file
23
features/git.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
nixos =
|
||||
{ lib, ... }:
|
||||
{
|
||||
options.features.git.enable = lib.mkEnableOption "git";
|
||||
};
|
||||
|
||||
home =
|
||||
{ pkgs, lib, inputs, osConfig, ... }:
|
||||
let
|
||||
cfg = osConfig.features.git;
|
||||
packages = inputs.self.outputs.packages.${pkgs.stdenv.hostPlatform.system};
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [
|
||||
pkgs.git
|
||||
packages.git-linearize
|
||||
packages.ggman
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user