Skip to content

Commit

Permalink
system: add ucodenix to update microcode
Browse files Browse the repository at this point in the history
use upstream bcachefs-tools flake
use rc kernel, enable scx conditionally
  • Loading branch information
JohnRTitor committed Aug 10, 2024
1 parent d1a718d commit 255860b
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 14 deletions.
55 changes: 45 additions & 10 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};

ucodenix.url = "github:e-tho/ucodenix";
browser-previews = {
url = "github:nix-community/browser-previews"; # Latest Chrome stable, beta, and dev
inputs.nixpkgs.follows = "nixpkgs";
Expand Down
2 changes: 2 additions & 0 deletions flake/hosts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ in {
# make home-manager as a module of nixos
# so that home-manager configuration will be deployed automatically when executing `nixos-rebuild switch`
inputs.home-manager.nixosModules.default

inputs.ucodenix.nixosModules.ucodenix
]
++ lib.optionals systemSettings.secureboot [inputs.lanzaboote.nixosModules.lanzaboote];
};
Expand Down
2 changes: 1 addition & 1 deletion modules-overlays/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

nixpkgs.overlays = [
(final: prev: {
# bcachefs-tools = inputs.bcachefs-tools.packages.${pkgs.system}.bcachefs-tools;
bcachefs-tools = inputs.bcachefs-tools.packages.${pkgs.system}.bcachefs-tools;
})
];

Expand Down
2 changes: 1 addition & 1 deletion modules-overlays/uwsm/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[Desktop Entry]
Name=${opts.compositor_pretty_name} (with UWSM)
Comment=${opts.compositor_comment}
Exec=${lib.getExe cfg.package} start -S -- "${opts.compositor_bin_path}"
Exec=${lib.getExe cfg.package} start -S -F "${opts.compositor_bin_path}"
Type=Application
'';
destination = "/share/wayland-sessions/${opts.name}_uwsm.desktop";
Expand Down
2 changes: 1 addition & 1 deletion system/boot/kernel.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pkgs,
...
}: {
boot.kernelPackages = pkgs.linuxPackages_cachyos-lto;
boot.kernelPackages = pkgs.linuxPackages_testing;

boot.extraModulePackages = with config.boot.kernelPackages; [
# zenpower is used for reading temperature, voltage, current and power
Expand Down
6 changes: 5 additions & 1 deletion system/services/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Configure system services
{
config,
lib,
pkgs,
systemSettings,
Expand All @@ -24,7 +25,7 @@
};

# Enable scx extra schedulers, only available for linux-cachyos
chaotic.scx.enable = true; # by default uses rustland
chaotic.scx.enable = (config.boot.kernelPackages.kernel.passthru.config.CONFIG_SCHED_CLASS_EXT or null) == "y"; # by default uses rustland
chaotic.scx.scheduler = "scx_bpfland";

# Accounts daemon is needed to remember passwords and other account information
Expand Down Expand Up @@ -92,4 +93,7 @@
security.polkit.enable = true; # Enable polkit for elevated prompts

# services.colord.enable = true; # For color management

services.ucodenix.enable = true;
services.ucodenix.cpuSerialNumber = "00A6-0F12-0000-0000-0000-0000";
}

0 comments on commit 255860b

Please sign in to comment.