make more stuff arch conditional
This commit is contained in:
parent
0931b085ee
commit
7d72e47e20
5 changed files with 6 additions and 7 deletions
|
@ -12,8 +12,6 @@
|
|||
|
||||
# x86-64 machine
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader.systemd-boot.memtest86.enable = true;
|
||||
|
||||
# our hostname
|
||||
networking.hostName = "beta";
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
|
||||
# x86-64 machine
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader.systemd-boot.memtest86.enable = true;
|
||||
|
||||
# our hostname
|
||||
networking.hostName = "miku";
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
|
||||
# x86-64 machine
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader.systemd-boot.memtest86.enable = true;
|
||||
|
||||
# our hostname
|
||||
networking.hostName = "neko";
|
||||
|
|
|
@ -116,6 +116,12 @@ in
|
|||
# use systemd early, we use boot.initrd.systemd.services.rollback to rollback /
|
||||
boot.initrd.systemd.enable = true;
|
||||
|
||||
# works only on x86 machines, not on the Macs
|
||||
boot.loader.efi.canTouchEfiVariables = pkgs.stdenv.hostPlatform.isx86;
|
||||
|
||||
# memcheck, works only on x86 machines
|
||||
boot.loader.systemd-boot.memtest86.enable = pkgs.stdenv.hostPlatform.isx86;
|
||||
|
||||
# setup the console stuff early and use a nice font
|
||||
console.earlySetup = true;
|
||||
console.font = "${pkgs.spleen}/share/consolefonts/spleen-16x32.psfu";
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
# AArch64 machine
|
||||
nixpkgs.hostPlatform = "aarch64-linux";
|
||||
boot.loader.efi.canTouchEfiVariables = false;
|
||||
|
||||
# our hostname
|
||||
networking.hostName = "zeta";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue