-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.nix
33 lines (28 loc) · 870 Bytes
/
home.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ config, pkgs, lib, ... }:
let username = config.home.username;
in {
imports = [ ./programs ./scripts ./launchd.nix ];
home = {
username = "abhinav";
homeDirectory = lib.mkForce "/Users/${username}";
stateVersion = "22.05";
enableNixpkgsReleaseCheck = true;
shellAliases = {
g = "${pkgs.git}/bin/git";
j = "${pkgs.just}/bin/just";
l = "${pkgs.bat}/bin/bat";
m = "${pkgs.micro}/bin/micro";
br = "${pkgs.broot}/bin/broot";
du = "${pkgs.dua}/bin/dua interactive";
tf = "${pkgs.coreutils-full}/bin/tail -f";
cat = "${pkgs.bat}/bin/bat";
};
file."Applications/Home Manager Apps".source = let
apps = pkgs.buildEnv {
name = "home-manager-applications";
paths = config.home.packages;
pathsToLink = "/Applications";
};
in "${apps}/Applications";
};
}