realised how self' is supposed to work and removed all stdenv bullshit

This commit is contained in:
2026-07-07 13:53:09 +01:00
parent dd8369d01e
commit d18e1476dd
8 changed files with 73 additions and 107 deletions

View File

@@ -1,16 +1,17 @@
{
self,
inputs,
moduleWithSystem,
...
}: {
flake.nixosModules.zsh = {
flake.nixosModules.zsh = moduleWithSystem ({
pkgs,
lib,
self',
...
}: {
nixpkgs.overlays = [
(final: prev: {
zsh = self.packages.${pkgs.stdenv.hostPlatform.system}.zsh;
zsh = self'.packages.zsh;
})
];
programs.zsh = {
@@ -22,7 +23,7 @@
histSize = 10000;
};
users.defaultUserShell = pkgs.zsh;
};
});
perSystem = {
pkgs,
lib,
@@ -54,7 +55,7 @@
export EDITOR=nvim
eval "$(${lib.getExe pkgs.devenv} hook zsh)"
eval "$(${lib.getExe self.packages.${pkgs.host.stdenv.hostPlatform.system}.ohMyPosh} init zsh)"
eval "$(${lib.getExe self'.packages.ohMyPosh} init zsh)"
${lib.getExe pkgs.any-nix-shell} zsh --info-right | source /dev/stdin
'';