create elvish home-manager module

This commit is contained in:
do butterflies cry? 2026-03-26 09:32:49 +10:00
parent a8fde8ae1b
commit 3272e94157
Signed by: cry
GPG key ID: F68745A836CA0412
2 changed files with 35 additions and 1 deletions

View file

@ -4,8 +4,10 @@
./modules/cli/ssh.nix
../modules/term/foot.nix
../modules/shell/fish.nix
../modules/shell/zsh.nix
../modules/shell/zsh.nix
../modules/shell/fish.nix
../modules/shell/elvish.nix
../modules/editor/helix.nix
../modules/editor/neovim
@ -23,8 +25,11 @@
../modules/wm/hyprland
../modules/wm/mango
../modules/de/mako.nix
../modules/de/waybar
];
programs.elvish.enable = true;
home = {
shellAliases = {
# nix

View file

@ -0,0 +1,29 @@
{
config,
pkgs,
lib,
...
}: let
cfg = config.programs.elvish;
in {
options.programs.elvish = {
enable = lib.mkEnableOption "elvish";
};
config = lib.mkIf cfg.enable {
home = {
packages = with pkgs; [elvish];
file.".elvish/nix.elv".source = let
elvish-modules = pkgs.fetchFromGitHub {
owner = "zzamboni";
repo = "elvish-modules";
rev = "9005c970346ab06214b3cd3ed3e70f04f3c632ba";
hash = "sha256-/Dwtl12QzPvMoMMGoj+v3dwX2ZwFT8t/bohVy1zDE0c=";
};
in
builtins.toPath "${elvish-modules}/nix.elv";
# /${builtins.toPath elvish-modules.outPath}/nix.elv;
};
};
}