replace kernel with cachyos-server for server config
This commit is contained in:
@@ -12,7 +12,11 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../modules/core
|
../../modules/core/boot_server.nix
|
||||||
|
../../modules/core/localization.nix
|
||||||
|
../../modules/core/networking.nix
|
||||||
|
../../modules/core/system.nix
|
||||||
|
../../modules/core/users.nix
|
||||||
../../modules/hardware/audio.nix
|
../../modules/hardware/audio.nix
|
||||||
../../modules/hardware/storage.nix
|
../../modules/hardware/storage.nix
|
||||||
../../modules/hardware/power.nix
|
../../modules/hardware/power.nix
|
||||||
|
|||||||
45
modules/core/boot_server.nix
Normal file
45
modules/core/boot_server.nix
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
# modules/core/boot.nix
|
||||||
|
# Bootloader, kernel, and boot-time configuration
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
boot.loader.systemd-boot.enable = false;
|
||||||
|
boot.loader.limine = {
|
||||||
|
enable = true;
|
||||||
|
style.wallpapers = [ ../../wallpaper/nix.png ];
|
||||||
|
maxGenerations = 5;
|
||||||
|
};
|
||||||
|
boot.loader.limine.secureBoot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
boot.kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-server;
|
||||||
|
|
||||||
|
boot.kernelParams = [
|
||||||
|
"amd_pstate=active"
|
||||||
|
"amdgpu.ppfeaturemask=0xffffffff"
|
||||||
|
"quiet"
|
||||||
|
"splash"
|
||||||
|
"loglevel=3"
|
||||||
|
"rd.udev.log_level=3"
|
||||||
|
"systemd.show_status=auto"
|
||||||
|
"vt.global_cursor_default=0"
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.consoleLogLevel = 3;
|
||||||
|
boot.resumeDevice = "/dev/mapper/cryptswap";
|
||||||
|
|
||||||
|
boot.initrd.systemd.enable = true;
|
||||||
|
boot.plymouth = {
|
||||||
|
enable = true;
|
||||||
|
theme = "nixos-bgrt";
|
||||||
|
themePackages = [ pkgs.nixos-bgrt-plymouth ];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.scx.enable = true;
|
||||||
|
services.scx.scheduler = "scx_lavd";
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user