Skip to content

Commit

Permalink
specialization: add safe specialization
Browse files Browse the repository at this point in the history
with xanmod kernel, and no scx

move neovim for now, disable it
  • Loading branch information
JohnRTitor committed Jul 29, 2024
1 parent c079c8e commit badc341
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
7 changes: 7 additions & 0 deletions programs/neovim.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{...}:
{
programs.neovim = {
enable = true; # Enable Neovim
vimAlias = true; # Enable vim alias
};
}
7 changes: 3 additions & 4 deletions system/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
./printing.nix
# include essential services
./services
# include specializations
./safe-specialization.nix
]
++
# Configure secure boot with lanzaboote, if secureboot is enabled
Expand All @@ -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" ];
}
9 changes: 9 additions & 0 deletions system/safe-specialization.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}

0 comments on commit badc341

Please sign in to comment.