mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
25 lines
555 B
Nix
25 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 = {
|
|
};
|
|
}
|