mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
26 lines
555 B
Nix
26 lines
555 B
Nix
# This module defines global configuration for the shells.
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
with pkgs.lib;
|
|
|
|
{
|
|
options = {
|
|
environment.shellAliases = mkOption {
|
|
type = types.attrs; # types.attrsOf types.stringOrPath;
|
|
default = {};
|
|
example = {
|
|
ll = "ls -lh";
|
|
};
|
|
description = ''
|
|
An attribute set that maps aliases (the top level attribute names in
|
|
this option) to command strings or directly to build outputs. The
|
|
aliases are added to all users' shells.
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = {
|
|
};
|
|
}
|