A new start
This commit is contained in:
commit
f4e2368893
93 changed files with 7621 additions and 0 deletions
31
modules/home/cli-apps/home-manager/default.nix
Normal file
31
modules/home/cli-apps/home-manager/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
inherit (lib.metacfg) enabled;
|
||||
|
||||
cfg = config.metacfg.cli-apps.home-manager;
|
||||
in
|
||||
{
|
||||
options.metacfg.cli-apps.home-manager = {
|
||||
enable = mkEnableOption "home-manager";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.home-manager = enabled;
|
||||
home.sessionVariables = {
|
||||
EDITOR = "${pkgs.vim}/bin/vim";
|
||||
BATDIFF_USE_DELTA = "true";
|
||||
};
|
||||
|
||||
home.shellAliases = {
|
||||
cat = "${pkgs.bat}/bin/bat --decorations never";
|
||||
less = ''${pkgs.bat}/bin/bat --decorations never --paging=always --pager "${pkgs.less}/bin/less -RF"'';
|
||||
man = "${pkgs.bat-extras.batman}/bin/batman";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
vim
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue