Make nix config evaluate on m1
This commit is contained in:
parent
cfc752a3db
commit
f155382789
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
discord =
|
discord =
|
||||||
(pkgs.armcord.override { nss = pkgs.nss_latest; }).overrideAttrs (attrs: {
|
(pkgs.unstable.armcord.override { nss = pkgs.nss_latest; mesa = pkgs.mesa; }).overrideAttrs (attrs: {
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# Wrap the startup command
|
# Wrap the startup command
|
||||||
makeWrapper $out/opt/ArmCord/armcord $out/bin/armcord \
|
makeWrapper $out/opt/ArmCord/armcord $out/bin/armcord \
|
||||||
|
|
|
@ -28,6 +28,8 @@
|
||||||
useExperimentalGPUDriver = true;
|
useExperimentalGPUDriver = true;
|
||||||
experimentalGPUInstallMode = "overlay";
|
experimentalGPUInstallMode = "overlay";
|
||||||
};
|
};
|
||||||
|
## Additional mesa-related packages
|
||||||
|
environment.systemPackages = with pkgs; [ SDL2 ];
|
||||||
|
|
||||||
# Power Management
|
# Power Management
|
||||||
services.upower = {
|
services.upower = {
|
||||||
|
|
|
@ -26,7 +26,7 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
accounts = { pkgs, ... }: mkIf config.common.linux.enable {
|
accounts = { pkgs, ... }: mkIf (config.common.linux.enable && !pkgs.stdenv.isAarch64) {
|
||||||
environment.systemPackages = with pkgs.gnome; [ pkgs.glib gnome-control-center ];
|
environment.systemPackages = with pkgs.gnome; [ pkgs.glib gnome-control-center ];
|
||||||
services.accounts-daemon.enable = true;
|
services.accounts-daemon.enable = true;
|
||||||
services.gnome.gnome-online-accounts.enable = true;
|
services.gnome.gnome-online-accounts.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue