mirror of
https://github.com/cupcakearmy/nix-macos.git
synced 2025-12-07 14:35:03 +00:00
25 lines
546 B
Nix
25 lines
546 B
Nix
{
|
|
pkgs,
|
|
username,
|
|
name,
|
|
homeDirectory,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
common = (import ../common/home.nix) { inherit pkgs; };
|
|
overwrite = {
|
|
home.username = username;
|
|
home.homeDirectory = homeDirectory;
|
|
home = {
|
|
shellAliases = {
|
|
hm = "nix run home-manager/master -- switch --flake github:cupcakearmy/nix?dir=cli#${name} -b backup";
|
|
};
|
|
# Lists are not recursively updated, need to do by hand
|
|
packages = common.home.packages ++ [ ];
|
|
};
|
|
};
|
|
merged = lib.recursiveUpdate common overwrite;
|
|
in
|
|
merged
|