zsh experimenting

This commit is contained in:
2026-07-01 20:04:02 +01:00
parent 3609e42d8f
commit b4350f2dae
5 changed files with 22 additions and 2 deletions

View File

@@ -7,6 +7,7 @@
flake-parts.url = "github:hercules-ci/flake-parts"; flake-parts.url = "github:hercules-ci/flake-parts";
import-tree.url = "github:vic/import-tree"; import-tree.url = "github:vic/import-tree";
wrappers.url = "github:BirdeeHub/nix-wrapper-modules";
}; };
outputs = inputs: inputs.flake-parts.lib.mkFlake {inherit inputs;} (inputs.import-tree ./modules); outputs = inputs: inputs.flake-parts.lib.mkFlake {inherit inputs;} (inputs.import-tree ./modules);

View File

@@ -0,0 +1,9 @@
{ ... }:
{
flake.dots.zshrc = pkgs: ''
source ${pkgs.carapace}/share/carapace-bin/bash-preexec.sh
export PATH="${pkgs.carapace}/bin:$PATH"
alias ls="${pkgs.eza}/bin/eza"
'';
}

View File

@@ -4,8 +4,9 @@
... ...
}: { }: {
flake.nixosConfigurations.HACKSTATION = inputs.nixpkgs.lib.nixosSystem { flake.nixosConfigurations.HACKSTATION = inputs.nixpkgs.lib.nixosSystem {
modules = [ modules = with self.nixosModules; [
self.nixosModules.core core
hackstationConfiguration
]; ];
}; };
} }

View File

@@ -0,0 +1,9 @@
{
self,
inputs,
...
}: {
perSystem = {pkgs, ...}: {
packages.myZsh = {inputs.wrappers.wrappers.zsh.zshrc.content = (self.dots.zshrc pkgs);};
};
}