home: create 'modules/home' folder
Consolidating all modules under the same path, to clear out the top-level directory.
This commit is contained in:
parent
c856933803
commit
65a8f7c481
119 changed files with 2 additions and 2 deletions
26
modules/home/aliases/default.nix
Normal file
26
modules/home/aliases/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.home.aliases;
|
||||
in
|
||||
{
|
||||
options.my.home.aliases = with lib; {
|
||||
enable = my.mkDisableOption "shell aliases configuration";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home = {
|
||||
shellAliases = {
|
||||
# I like pretty colors
|
||||
diff = "diff --color=auto";
|
||||
grep = "grep --color=auto";
|
||||
egrep = "egrep --color=auto";
|
||||
fgrep = "fgrep --color=auto";
|
||||
ls = "ls --color=auto";
|
||||
|
||||
# Well-known ls aliases
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue