fix: isLinux checks for genericLinux/xdg.mime

This commit is contained in:
winston 2023-09-03 00:48:20 +02:00
parent 9b552d9b48
commit e4424f982a
Signed by: winston
GPG key ID: 3786770EDBC2B481

View file

@ -10,16 +10,18 @@
then "/Users/${username}/.config/nixpkgs" then "/Users/${username}/.config/nixpkgs"
else "/home/${username}/.config/nixpkgs"; else "/home/${username}/.config/nixpkgs";
}; };
hmStandaloneConfig = { hmStandaloneConfig = let
inherit (pkgs.stdenv) isLinux isDarwin;
in {
home.homeDirectory = home.homeDirectory =
if pkgs.stdenv.isLinux if isLinux
then "/home/${username}" then "/home/${username}"
else if pkgs.stdenv.isDarwin else if isDarwin
then "/Users/${username}" then "/Users/${username}"
else throw "Unsupported system"; else throw "Unsupported system";
home.username = username; home.username = username;
targets.genericLinux.enable = true; targets.genericLinux.enable = isLinux;
xdg.mime.enable = true; xdg.mime.enable = isLinux;
}; };
modules = with inputs; modules = with inputs;
[ [