From badc3417ce7efabebdc50598a9efe80718720749 Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Tue, 30 Jul 2024 00:10:02 +0530 Subject: [PATCH] specialization: add safe specialization with xanmod kernel, and no scx move neovim for now, disable it --- programs/neovim.nix | 7 +++++++ system/default.nix | 7 +++---- system/safe-specialization.nix | 9 +++++++++ 3 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 programs/neovim.nix create mode 100644 system/safe-specialization.nix diff --git a/programs/neovim.nix b/programs/neovim.nix new file mode 100644 index 00000000..0250fcd0 --- /dev/null +++ b/programs/neovim.nix @@ -0,0 +1,7 @@ +{...}: +{ + programs.neovim = { + enable = true; # Enable Neovim + vimAlias = true; # Enable vim alias + }; +} \ No newline at end of file diff --git a/system/default.nix b/system/default.nix index 79e615a2..5f0aa19f 100644 --- a/system/default.nix +++ b/system/default.nix @@ -31,6 +31,8 @@ ./printing.nix # include essential services ./services + # include specializations + ./safe-specialization.nix ] ++ # Configure secure boot with lanzaboote, if secureboot is enabled @@ -42,8 +44,5 @@ # Import if laptop mode is enabled lib.optionals (systemSettings.laptop) [./power.nix]; - programs.neovim = { - enable = true; # Enable Neovim - vimAlias = true; # Enable vim alias - }; + system.nixos.tags = lib.mkDefault [ "cachyos" ]; } diff --git a/system/safe-specialization.nix b/system/safe-specialization.nix new file mode 100644 index 00000000..99af2c63 --- /dev/null +++ b/system/safe-specialization.nix @@ -0,0 +1,9 @@ +{lib, pkgs, ... }: +{ + # Creates a second boot entry with LTS kernel, stable ZFS, stable Mesa3D. + specialisation.safe.configuration = { + system.nixos.tags = [ "xanmod" ]; + boot.kernelPackages = lib.mkForce pkgs.linuxPackages_xanmod_latest; + chaotic.scx.enable = lib.mkForce false; + }; +} \ No newline at end of file