added system/

This commit is contained in:
Sven Vogel 2023-12-18 15:53:52 +01:00
parent 9ff402fd12
commit f7f02a2f26
4 changed files with 27 additions and 15 deletions

View File

@ -12,6 +12,7 @@
./dev ./dev
./games ./games
./hardware ./hardware
./system
]; ];
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default

6
system/default.nix Normal file
View File

@ -0,0 +1,6 @@
{
imports = [
./grub.nix
./kernel.nix
];
}

View File

@ -27,21 +27,6 @@
}; };
}; };
boot.kernelPackages = pkgs.linuxPackages_latest;
# extra enabled kernel modules
boot.kernelModules = [
"sg" # for generic SCSI devices such as /dev/sg0
];
# Kernel parameter on boot
boot.kernelParams = [
"quiet"
"splash"
"psi=1"
"boot_delay=0"
];
# Setup keyfile # Setup keyfile
boot.initrd.secrets = { boot.initrd.secrets = {
"/crypto_keyfile.bin" = null; "/crypto_keyfile.bin" = null;

20
system/kernel.nix Normal file
View File

@ -0,0 +1,20 @@
{ pkgs, ... }:
{
boot.kernelPackages = pkgs.linuxPackages_latest;
# extra enabled kernel modules
boot.kernelModules = [
"sg" # for generic SCSI devices such as /dev/sg0
];
boot.consoleLogLevel = 0;
# Kernel parameter on boot
boot.kernelParams = [
"quiet"
"udev.log_level=3"
"splash"
"psi=1"
"boot_delay=0"
];
}