Refactoring config preparing for server
This commit is contained in:
parent
2bffc8d711
commit
6992836cfe
18 changed files with 165 additions and 10 deletions
15
modules/desktop/specialisations/gaming.nix
Normal file
15
modules/desktop/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/desktop/specialisations/kde-gaming.nix
Normal file
23
modules/desktop/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/desktop/specialisations/kde.nix
Normal file
15
modules/desktop/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/desktop/specialisations/old-kernel.nix
Normal file
9
modules/desktop/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