mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-03-14 15:51:32 +01:00
21 lines
414 B
Nix
21 lines
414 B
Nix
{
|
|
lib,
|
|
namespace,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkEnableOption mkIf;
|
|
cfg = config.${namespace}.common.shell;
|
|
in {
|
|
options.${namespace}.common.shell = {
|
|
enable = mkEnableOption "Modify the standard shell options";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.shells = with pkgs; [ nushell fish ];
|
|
users.defaultUserShell = pkgs.nushell;
|
|
programs.fish.enable = true;
|
|
};
|
|
}
|