mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-11-22 22:53:07 +01:00
Add support for more kernels
This commit is contained in:
parent
b234c67b62
commit
ec99b135c9
@ -12,6 +12,7 @@
|
|||||||
./intel-amd.nix
|
./intel-amd.nix
|
||||||
./intel-gpu.nix
|
./intel-gpu.nix
|
||||||
./intel-nvidia.nix
|
./intel-nvidia.nix
|
||||||
|
./kernel.nix
|
||||||
./logitech.nix
|
./logitech.nix
|
||||||
./neovim.nix
|
./neovim.nix
|
||||||
./nfs.nix
|
./nfs.nix
|
||||||
|
16
config/system/kernel.nix
Normal file
16
config/system/kernel.nix
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./kernel/default.nix
|
||||||
|
./kernel/latest.nix
|
||||||
|
./kernel/lqx.nix
|
||||||
|
./kernel/xanmod.nix
|
||||||
|
./kernel/zen.nix
|
||||||
|
|
||||||
|
# For the adventurous people
|
||||||
|
# It's not listed in the list of possible options,
|
||||||
|
# but the ones who want to try it can do so.
|
||||||
|
./kernel/testing.nix
|
||||||
|
];
|
||||||
|
}
|
6
config/system/kernel/default.nix
Normal file
6
config/system/kernel/default.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let inherit (import ../../../options.nix) theKernel; in
|
||||||
|
lib.mkIf (theKernel == "default") {
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages;
|
||||||
|
}
|
6
config/system/kernel/latest.nix
Normal file
6
config/system/kernel/latest.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let inherit (import ../../../options.nix) theKernel; in
|
||||||
|
lib.mkIf (theKernel == "latest") {
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
}
|
6
config/system/kernel/lqx.nix
Normal file
6
config/system/kernel/lqx.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let inherit (import ../../../options.nix) theKernel; in
|
||||||
|
lib.mkIf (theKernel == "lqx") {
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_lqx;
|
||||||
|
}
|
9
config/system/kernel/testing.nix
Normal file
9
config/system/kernel/testing.nix
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# For the adventurous people
|
||||||
|
# It's not listed in the list of possible options,
|
||||||
|
# but the ones who want to try it can do so.
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let inherit (import ../../../options.nix) theKernel; in
|
||||||
|
lib.mkIf (theKernel == "testing") {
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_testing;
|
||||||
|
}
|
6
config/system/kernel/xanmod.nix
Normal file
6
config/system/kernel/xanmod.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let inherit (import ../../../options.nix) theKernel; in
|
||||||
|
lib.mkIf (theKernel == "xanmod") {
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
|
||||||
|
}
|
6
config/system/kernel/zen.nix
Normal file
6
config/system/kernel/zen.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let inherit (import ../../../options.nix) theKernel; in
|
||||||
|
lib.mkIf (theKernel == "zen") {
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_zen;
|
||||||
|
}
|
@ -26,6 +26,7 @@ in {
|
|||||||
theLCVariables = "en_US.UTF-8";
|
theLCVariables = "en_US.UTF-8";
|
||||||
theTimezone = "America/Chicago";
|
theTimezone = "America/Chicago";
|
||||||
theShell = "bash"; # Possible options: bash, zsh
|
theShell = "bash"; # Possible options: bash, zsh
|
||||||
|
theKernel = "default"; # possible options: default, latest, lqx, xanmod, zen
|
||||||
# For Hybrid Systems intel-nvidia
|
# For Hybrid Systems intel-nvidia
|
||||||
# Should Be Used As gpuType
|
# Should Be Used As gpuType
|
||||||
cpuType = "intel";
|
cpuType = "intel";
|
||||||
|
Loading…
Reference in New Issue
Block a user