fix: isLinux checks for genericLinux/xdg.mime
This commit is contained in:
parent
9b552d9b48
commit
e4424f982a
1 changed files with 7 additions and 5 deletions
12
home/lib.nix
12
home/lib.nix
|
@ -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;
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in a new issue