diff --git a/modules/home/nyxerinys/default.nix b/modules/home/nyxerinys/default.nix index 14b8fa3..a7203e2 100644 --- a/modules/home/nyxerinys/default.nix +++ b/modules/home/nyxerinys/default.nix @@ -1,7 +1,7 @@ -{ pkgs, ... }: +{ osConfig, pkgs, ... }: { - imports = if pkgs.stdenv.isLinux + imports = if osConfig.nixpkgs.hostPlatform.isLinux then [ ./linux ] else [ ./mac ]; @@ -11,7 +11,7 @@ home = { username = "nyxerinys"; homeDirectory = ( - if pkgs.stdenv.isLinux then + if osConfig.nixpkgs.hostPlatform.isLinux then "/home/nyxerinys" else "/Users/nyxerinys"