nix-managed-macbook/home.nix

38 lines
927 B
Nix
Raw Normal View History

2023-11-25 16:13:20 +05:30
{ config, pkgs, lib, ... }:
2022-09-25 00:54:06 +05:30
2023-11-25 16:13:20 +05:30
let username = config.home.username;
in {
imports = [ ./programs ./scripts ./launchd.nix ];
2022-09-27 13:08:52 +05:30
2023-11-24 16:35:04 +05:30
home = {
username = "abhinav";
2023-11-25 16:13:20 +05:30
homeDirectory = lib.mkForce "/Users/${username}";
2023-11-24 16:35:04 +05:30
stateVersion = "22.05";
enableNixpkgsReleaseCheck = true;
2022-09-26 19:12:14 +05:30
2023-11-24 16:35:53 +05:30
shellAliases = {
2023-11-24 16:35:04 +05:30
g = "${pkgs.git}/bin/git";
j = "${pkgs.just}/bin/just";
l = "${pkgs.bat}/bin/bat";
m = "${pkgs.micro}/bin/micro";
2022-09-29 11:39:28 +05:30
2023-11-24 16:35:04 +05:30
br = "${pkgs.broot}/bin/broot";
du = "${pkgs.dua}/bin/dua interactive";
tf = "${pkgs.coreutils-full}/bin/tail -f";
cat = "${pkgs.bat}/bin/bat";
};
2022-09-26 23:51:11 +05:30
sessionVariables = {
EDITOR = "micro";
};
2022-09-29 11:39:28 +05:30
2023-11-24 16:35:04 +05:30
file."Applications/Home Manager Apps".source = let
apps = pkgs.buildEnv {
name = "home-manager-applications";
paths = config.home.packages;
pathsToLink = "/Applications";
};
in "${apps}/Applications";
};
2022-09-25 00:54:06 +05:30
}