use pkgs.stdenv.hostPlatform

This commit is contained in:
Anthony Cicchetti 2023-08-21 09:39:38 -04:00
parent 6295696cb3
commit 4d95632c7c
3 changed files with 6 additions and 9 deletions

View file

@ -61,10 +61,6 @@
nix-index-database.hmModules.nix-index
./home.nix
];
extraSpecialArgs = {
system = system;
};
}
);
in {

View file

@ -1,15 +1,16 @@
{
config,
pkgs,
system,
...
}: {
}: let
inherit (pkgs.stdenv.hostPlatform) isDarwin isLinux;
in {
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = "acicchetti";
home.homeDirectory =
if "${system}" == "aarch64-darwin"
if isDarwin
then "/Users/acicchetti"
else "/home/acicchetti";

View file

@ -2,11 +2,11 @@
pkgs,
lib,
config,
system,
...
}: let
inherit (pkgs.stdenv.hostPlatform) isDarwin isLinux;
systemSpecificPackages =
if "${system}" != "aarch64-darwin"
if isLinux
# include gping because of open bug
then [pkgs.zsh pkgs.racket pkgs.gping pkgs.mold]
else [];