21 lines
530 B
Nix
21 lines
530 B
Nix
{ config, lib, ... }:
|
|
let
|
|
feature = "shell";
|
|
in
|
|
{
|
|
config = lib.mkIf config.${feature}.enable {
|
|
environment.shellAliases = {
|
|
l = "eza --long --header --group-directories-first --icons always";
|
|
la = "l -a";
|
|
g = "lazygit";
|
|
ns = "nh os switch";
|
|
rf = "nix flake init --template 'https://flakehub.com/f/the-nix-way/dev-templates/*#rust' && direnv allow";
|
|
vi = "nvim";
|
|
vim = "nvim";
|
|
};
|
|
};
|
|
|
|
imports = [ ];
|
|
|
|
options.${feature}.enable = lib.mkEnableOption "enables ${feature}";
|
|
}
|