home: setup fish and starship module

This commit is contained in:
Antoine Martin 2021-04-22 16:21:30 +02:00
parent e596dee8ee
commit b538eec36f
4 changed files with 33 additions and 0 deletions

View file

@ -3,8 +3,10 @@
imports = [
./alacritty.nix
./emacs.nix
./fish.nix
./flameshot.nix
./secrets
./starship.nix
./themes
./tmux.nix
./x

11
home/fish.nix Normal file
View file

@ -0,0 +1,11 @@
{ config, lib, ... }:
let
cfg = config.my.home.fish;
in
{
options.my.home.fish.enable = lib.mkEnableOption "Fish shell";
config = lib.mkIf cfg.enable {
programs.fish.enable = true;
};
}

17
home/starship.nix Normal file
View file

@ -0,0 +1,17 @@
{ config, lib, ... }:
let
cfg = config.my.home.starship;
in
{
options.my.home.starship.enable = lib.mkEnableOption "Starship.rs prompt";
config = lib.mkIf cfg.enable {
programs.starship = {
enable = true;
enableFishIntegration = true;
settings = {
add_newline = false;
};
};
};
}

View file

@ -7,6 +7,9 @@
my.home.alacritty.enable = true;
my.home.emacs.enable = true;
my.home.tmux.enable = true;
my.home.starship.enable = false;
my.home.fish.enable = true;
my.theme = config.home-manager.users.alarsyo.my.themes.solarizedLight;
};
}