mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
Consolidate shellcommon and terminal
This commit is contained in:
parent
e1bf6938b6
commit
36449755b3
4 changed files with 14 additions and 20 deletions
|
|
@ -1,15 +0,0 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
home.shellAliases = {
|
||||
e = "nvim";
|
||||
g = "git";
|
||||
lg = "lazygit";
|
||||
l = lib.getExe pkgs.exa;
|
||||
};
|
||||
|
||||
# Until https://github.com/nix-community/home-manager/pull/3529
|
||||
# programs.nushell.extraConfig =
|
||||
# lib.concatStringsSep "\n" (lib.mapAttrsToList (k: v: "alias ${k} = ${v} ") config.home.shellAliases);
|
||||
}
|
||||
|
||||
|
|
@ -1,18 +1,26 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
# Key packages required on nixos and macos
|
||||
home.packages = with pkgs; [
|
||||
# Unixy tools
|
||||
gnumake
|
||||
ripgrep
|
||||
htop
|
||||
fd
|
||||
|
||||
# Useful for Nix development
|
||||
nix-output-monitor
|
||||
devour-flake
|
||||
nil
|
||||
nixpkgs-fmt
|
||||
];
|
||||
|
||||
home.shellAliases = {
|
||||
e = "nvim";
|
||||
g = "git";
|
||||
lg = "lazygit";
|
||||
l = lib.getExe pkgs.exa;
|
||||
};
|
||||
|
||||
programs = {
|
||||
bat.enable = true;
|
||||
autojump.enable = false;
|
||||
|
|
@ -20,5 +28,6 @@
|
|||
fzf.enable = true;
|
||||
jq.enable = true;
|
||||
nix-index.enable = true;
|
||||
htop.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
home-manager.users.${config.people.myself} = { pkgs, ... }: {
|
||||
imports = [
|
||||
self.homeModules.common-darwin
|
||||
../home/shellcommon.nix
|
||||
../home/terminal.nix
|
||||
../home/git.nix
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ in
|
|||
flake = {
|
||||
nixosModules = {
|
||||
myself = mkHomeModule config.people.myself [
|
||||
../home/shellcommon.nix
|
||||
../home/terminal.nix
|
||||
];
|
||||
default.imports = [
|
||||
self.nixosModules.home-manager
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue