Compare commits

..

No commits in common. "3b45d2e7c4b77158f5b621772c48a0fea2b80a9a" and "fda28bf44511bc6d0be15f43bb47136b9de9ec00" have entirely different histories.

2 changed files with 0 additions and 28 deletions

View File

@ -11,7 +11,6 @@
overlays.default = final: prev: {
inherit (self.packages.${prev.system}) fsh;
};
homeModules.fsh = import ./home.nix;
} // flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {

View File

@ -1,27 +0,0 @@
{ pkgs, lib, config, ... }:
with lib;
let
cfg = config.programs.fsh;
in
{
options.programs.fsh = {
enable = mkOption {
type = types.bool;
default = false;
description = ''
Enables the fsh prompt for the fish shell.
programs.fish.enable must also be set to true for this option to have effect.
'';
};
};
config = mkIf cfg.enable {
home.packages = [ pkgs.fsh ];
programs.fish.functions.fish_prompt.body = ''
set FSH_LAST_STATUS $status
fsh $FSH_LAST_STATUS
'';
};
}