create elvish home-manager module
This commit is contained in:
parent
a8fde8ae1b
commit
3272e94157
2 changed files with 35 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
29
homes/modules/shell/elvish.nix
Normal file
29
homes/modules/shell/elvish.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue