nixos/core: set bootloader for per-host
This commit is contained in:
parent
59494644db
commit
19c8ad7b34
3 changed files with 12 additions and 14 deletions
|
@ -13,6 +13,7 @@
|
|||
../../nixos/profiles/common/opt-in/disko.nix
|
||||
];
|
||||
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
networking.hostName = "aristotle";
|
||||
time.timeZone = "Asia/Shanghai";
|
||||
_module.args.disks = ["/dev/nvme0n1"]; # Disko
|
||||
|
|
|
@ -13,6 +13,9 @@
|
|||
./anti-feature.nix
|
||||
];
|
||||
|
||||
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
networking.hostName = "blacksteel";
|
||||
time.timeZone = "Asia/Shanghai";
|
||||
|
||||
|
@ -28,15 +31,12 @@
|
|||
eula = true;
|
||||
openFirewall = true;
|
||||
|
||||
package = pkgs.papermc.override {jre = pkgs.temurin-bin;};
|
||||
|
||||
# TODO: error: list index 1 is out of bounds
|
||||
# (pkgs.papermc.overrideAttrs (old: {
|
||||
# version = "1.20.4.454";
|
||||
# src = old.src.overrideAttrs {
|
||||
# outputHash = "sha256-vH098T6gt/QpM0QOGTzu5VPNWPDYnmF8LQiRK6mDPS8=";
|
||||
# };
|
||||
# }))
|
||||
# I should switch to vanilla/fabric one day...
|
||||
package = pkgs.papermc.overrideAttrs {
|
||||
version = "1.20.4-485";
|
||||
hash = "sha256-8bhlv/MU7KDmdL8Ngvg/zLMlGiO4Fswoyn/1diFE65k=";
|
||||
};
|
||||
# TODO: not working for some reason
|
||||
#.override {jre = pkgs.temurin-bin;};
|
||||
|
||||
# Aikar's flag
|
||||
|
|
|
@ -37,10 +37,7 @@
|
|||
extraSpecialArgs = {inherit inputs;}; # ??? isnt specialArgs imported by default ???
|
||||
};
|
||||
|
||||
### Boot
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader.systemd-boot.enable = lib.mkDefault true; # mkDefault for Lanzaboote
|
||||
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_zen; # mkDefault for server
|
||||
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_zen;
|
||||
|
||||
### Default Programs
|
||||
# In addition of https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/config/system-path.nix
|
||||
|
|
Loading…
Reference in a new issue