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