zsh experimenting
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
9
modules/dots/zsh/default.nix
Normal file
9
modules/dots/zsh/default.nix
Normal 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"
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
9
modules/pacakges/zsh/default.nix
Normal file
9
modules/pacakges/zsh/default.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
self,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
perSystem = {pkgs, ...}: {
|
||||||
|
packages.myZsh = {inputs.wrappers.wrappers.zsh.zshrc.content = (self.dots.zshrc pkgs);};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user