Compare commits

...

4 commits

Author SHA1 Message Date
BuyMyMojo
5582cd6ad9
Add CPU micro code updater 2025-03-25 04:53:08 +11:00
BuyMyMojo
bd5a8ad917
Set FLAKE var properly & move AMD_VULKAN_ICD to session vars 2025-03-25 04:10:36 +11:00
BuyMyMojo
9533f584bb
Set FLAKE var 2025-03-25 04:07:32 +11:00
BuyMyMojo
9b34a80034
Add nh 2025-03-25 04:04:03 +11:00
3 changed files with 100 additions and 37 deletions

View file

@ -2,7 +2,13 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, unstable, ... }:
{
config,
pkgs,
unstable,
inputs,
...
}:
# let
# berkeley-mono-typeface = pkgs.callPackage ./packages/berkeley-mono-typeface.nix;
@ -17,8 +23,14 @@
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
inputs.ucodenix.nixosModules.default
];
services.ucodenix = {
enable = true;
cpuModelId = "00A20F12"; # AMD 5900X
};
# Use the latest linux Kernel
boot.kernelPackages = pkgs.linuxPackages_latest;
@ -163,7 +175,10 @@
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; with unstable; [
environment.systemPackages =
with pkgs;
with unstable;
[
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget
fzf
@ -186,7 +201,10 @@
openrazer-daemon
# === nix related ===
comma
nh
# === nix related ===
rustc
cargo
@ -335,9 +353,13 @@
'';
};
# environment.variables = {
# };
environment.sessionVariables = {
# === Prefer RADV driver ===
environment.variables = {
AMD_VULKAN_ICD = "RADV";
FLAKE = "/home/buymymojo/etc/nixos/";
};
# This value determines the NixOS release from which the default

36
nixos/flake.lock generated
View file

@ -1,5 +1,22 @@
{
"nodes": {
"cpu-microcodes": {
"flake": false,
"locked": {
"lastModified": 1742753109,
"narHash": "sha256-hneAwNElAMkaTdToS6DUa47gFkXoIIR77CesMKUW21A=",
"owner": "platomav",
"repo": "CPUMicrocodes",
"rev": "f093bec842057ebf35d0525fcd69f649714f4485",
"type": "github"
},
"original": {
"owner": "platomav",
"repo": "CPUMicrocodes",
"rev": "f093bec842057ebf35d0525fcd69f649714f4485",
"type": "github"
}
},
"home-manger": {
"inputs": {
"nixpkgs": [
@ -40,9 +57,28 @@
"inputs": {
"home-manger": "home-manger",
"nixpkgs": "nixpkgs",
"ucodenix": "ucodenix",
"unstable": "unstable"
}
},
"ucodenix": {
"inputs": {
"cpu-microcodes": "cpu-microcodes"
},
"locked": {
"lastModified": 1742827057,
"narHash": "sha256-eRUBUdKGKHxCTPkF6zoQsIKPdu58AkiPU0bxX8nuRoQ=",
"owner": "e-tho",
"repo": "ucodenix",
"rev": "1e8747f89ed13826cd7698be5a559bdbc50258fe",
"type": "github"
},
"original": {
"owner": "e-tho",
"repo": "ucodenix",
"type": "github"
}
},
"unstable": {
"locked": {
"lastModified": 1742669843,

View file

@ -7,6 +7,9 @@
home-manger.url = "github:nix-community/home-manager";
home-manger.inputs.nixpkgs.follows = "nixpkgs";
# CPU microcode updater
ucodenix.url = "github:e-tho/ucodenix";
};
outputs =
@ -19,6 +22,7 @@
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs;
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
@ -31,6 +35,7 @@
modules = [
./configuration.nix
];
};
};