Refactoring the config
This commit is contained in:
parent
9c3fc1879c
commit
0e866b1cb0
24 changed files with 355 additions and 304 deletions
15
modules/specialisations/gaming.nix
Normal file
15
modules/specialisations/gaming.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
specialisation = {
|
||||
gaming.configuration = {
|
||||
hardware.nvidia = {
|
||||
prime.sync.enable = lib.mkForce true;
|
||||
prime.offload = {
|
||||
enable = lib.mkForce false;
|
||||
enableOffloadCmd = lib.mkForce false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
23
modules/specialisations/kde-gaming.nix
Normal file
23
modules/specialisations/kde-gaming.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
specialisation = {
|
||||
kde-gaming.configuration = {
|
||||
hardware.nvidia = {
|
||||
prime.sync.enable = lib.mkForce true;
|
||||
prime.offload = {
|
||||
enable = lib.mkForce false;
|
||||
enableOffloadCmd = lib.mkForce false;
|
||||
};
|
||||
};
|
||||
|
||||
# GNOME
|
||||
services.xserver.displayManager.gdm.enable = lib.mkForce false;
|
||||
services.xserver.desktopManager.gnome.enable = lib.mkForce false;
|
||||
|
||||
# KDE
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
15
modules/specialisations/kde.nix
Normal file
15
modules/specialisations/kde.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
specialisation = {
|
||||
kde.configuration = {
|
||||
# GNOME
|
||||
services.xserver.displayManager.gdm.enable = lib.mkForce false;
|
||||
services.xserver.desktopManager.gnome.enable = lib.mkForce false;
|
||||
|
||||
# KDE
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
9
modules/specialisations/old-kernel.nix
Normal file
9
modules/specialisations/old-kernel.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
specialisation = {
|
||||
old-kernel.configuration = {
|
||||
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_6_1;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue