diff options
Diffstat (limited to 'features/system/cli')
| -rw-r--r-- | features/system/cli/shells/nushell.nix | 10 | ||||
| -rw-r--r-- | features/system/cli/utils/nh.nix | 17 |
2 files changed, 27 insertions, 0 deletions
diff --git a/features/system/cli/shells/nushell.nix b/features/system/cli/shells/nushell.nix new file mode 100644 index 0000000..0974e9a --- /dev/null +++ b/features/system/cli/shells/nushell.nix @@ -0,0 +1,10 @@ +{ config, pkgs, lib, ... }: let + cfg = config.features.cli.shells.nushell; +in { + options.features.cli.shells.nushell.enable = lib.mkEnableOption "nushell"; + config = lib.mkIf cfg.enable { + environment.shells = [ pkgs.nushell ]; + users.defaultUserShell = pkgs.nushell; + environment.systemPackages = [ pkgs.nushell ]; + }; +} diff --git a/features/system/cli/utils/nh.nix b/features/system/cli/utils/nh.nix new file mode 100644 index 0000000..e34157e --- /dev/null +++ b/features/system/cli/utils/nh.nix @@ -0,0 +1,17 @@ +{ config, lib, ... }: let + cfg = config.features.cli.utils.nh; +in { + options.features.cli.utils.nh = { + enable = lib.mkEnableOption "nh"; + flake = lib.mkOption { + type = lib.types.str; + description = "Absolute path to the flake."; + }; + }; + config = lib.mkIf cfg.enable { + programs.nh = { + enable = true; + flake = cfg.flake; + }; + }; +} |
