home-manager: make the hm modules match the nixos ones

This commit is contained in:
Veneficium 2024-11-05 17:45:56 +01:00
parent 4fc501b1e2
commit 32a5ebf118
16 changed files with 256 additions and 98 deletions

View file

@ -1,12 +1,23 @@
{ pkgs, ... }:
{
programs.fish = {
enable = true;
plugins = [
{
name = "fish-you-should-use";
src = pkgs.fishPlugins.fish-you-should-use;
}
];
config,
lib,
pkgs,
...
}:
{
options.settings.shell.fish = {
enable = lib.mkEnableOption "enable fish shell";
};
config = lib.mkIf config.settings.shell.fish.enable {
programs.fish = {
enable = true;
plugins = [
{
name = "fish-you-should-use";
src = pkgs.fishPlugins.fish-you-should-use;
}
];
};
};
}