fish module

This commit is contained in:
Zynh Ludwig 2024-05-29 21:54:42 -07:00
parent 1e87bd7221
commit 1e7079e54c
3 changed files with 28 additions and 18 deletions

View file

@ -4,7 +4,6 @@
imports = [ imports = [
./home/modules ./home/modules
./home/modules/git.nix ./home/modules/git.nix
./home/modules/fish.nix
]; ];
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should

View file

@ -1,7 +1,10 @@
{ ... }: { lib, ... }:
{ {
imports = [ imports = [
./neovim.nix ./neovim.nix
./alacritty.nix ./alacritty.nix
./fish.nix
]; ];
snowhawk.fish.enable = lib.mkDefault true;
} }

View file

@ -1,5 +1,12 @@
{ pkgs, inputs, ... }: { pkgs, inputs, config, lib, ... }:
let
cfg = config.snowhawk.fish;
in
{ {
options.snowhawk.fish = {
enable = lib.mkEnableOption "fish";
};
config = lib.mkIf cfg.enable {
programs.bash = { programs.bash = {
enable = true; enable = true;
initExtra = '' initExtra = ''
@ -18,4 +25,5 @@
builtins.readFile ../fish/config.fish builtins.readFile ../fish/config.fish
; ;
}; };
};
} }