Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 1 | { home-manager |
| 2 | , lib |
Skyler Grey | ef82269 | 2022-10-31 00:28:24 +0000 | [diff] [blame] | 3 | , inputs |
| 4 | , username |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 5 | , ... |
Skyler Grey | ee0c095 | 2022-09-01 23:33:36 +0100 | [diff] [blame] | 6 | }: { |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 7 | imports = [ home-manager.nixosModules.home-manager ]; |
Skyler Grey | ee0c095 | 2022-09-01 23:33:36 +0100 | [diff] [blame] | 8 | config = { |
| 9 | home-manager.useGlobalPkgs = true; |
Skyler Grey | ef82269 | 2022-10-31 00:28:24 +0000 | [diff] [blame] | 10 | nixpkgs.overlays = import ../overlays lib (inputs // { |
| 11 | inherit username inputs; |
Skyler Grey | 681cafd | 2022-11-02 08:10:11 +0000 | [diff] [blame] | 12 | }); |
Skyler Grey | ee0c095 | 2022-09-01 23:33:36 +0100 | [diff] [blame] | 13 | }; |
Skyler Grey | 4436541 | 2023-04-15 14:36:33 +0000 | [diff] [blame] | 14 | home.home.activation.linkProfile = home-manager.lib.hm.dag.entryBefore [ |
| 15 | "installPackages" |
| 16 | ] '' |
| 17 | if [ ! -d /home/${username}/.nix-profile/ ]; then |
| 18 | ln -s /nix/var/nix/profiles/per-user/${username}/profile/ /home/${username}/.nix-profile |
| 19 | fi |
| 20 | ''; |
Skyler Grey | bcb2cb7 | 2022-08-21 07:24:35 +0100 | [diff] [blame] | 21 | } |