nixos-hardware

This commit is contained in:
Chris Dombroski 2024-07-29 22:13:52 -04:00
parent 339e61914e
commit ce98d6ad2a
3 changed files with 31 additions and 5 deletions

View file

@ -257,6 +257,22 @@
"type": "github" "type": "github"
} }
}, },
"nixos-hardware": {
"locked": {
"lastModified": 1722278305,
"narHash": "sha256-xLBAegsn9wbj+pQfbX07kykd5VBV3Ywk3IbObVAAlWA=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "eab049fe178c11395d65a858ba1b56461ba9652d",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1722087241, "lastModified": 1722087241,
@ -295,6 +311,7 @@
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"home-manager": "home-manager", "home-manager": "home-manager",
"impermanence": "impermanence", "impermanence": "impermanence",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"sops-nix": "sops-nix", "sops-nix": "sops-nix",
"stylix": "stylix" "stylix": "stylix"

View file

@ -24,9 +24,10 @@
home-manager.follows = "home-manager"; home-manager.follows = "home-manager";
}; };
}; };
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
}; };
outputs = inputs@{ self, nixpkgs, flake-utils, home-manager, deploy-rs outputs = inputs@{ self, nixpkgs, flake-utils, home-manager, deploy-rs
, sops-nix, impermanence, stylix, ... }: , sops-nix, impermanence, stylix, nixos-hardware, ... }:
let let
pkgs = import nixpkgs { system = "x86_64-linux"; }; pkgs = import nixpkgs { system = "x86_64-linux"; };
aarch64Pkgs = import nixpkgs { system = "aarch64-linux"; }; aarch64Pkgs = import nixpkgs { system = "aarch64-linux"; };
@ -63,6 +64,13 @@
stylix.nixosModules.stylix stylix.nixosModules.stylix
impermanence.nixosModules.impermanence impermanence.nixosModules.impermanence
./systems/smolboi/configuration.nix ./systems/smolboi/configuration.nix
nixos-hardware.nixosModules.common-cpu-amd
nixos-hardware.nixosModules.common-cpu-amd-pstate
nixos-hardware.nixosModules.common-cpu-amd-zenpower
nixos-hardware.nixosModules.common-gpu-amd
nixos-hardware.nixosModules.common-pc
nixos-hardware.nixosModules.common-pc-ssd
nixos-hardware.nixosModules.gigabyte-b550
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
@ -76,6 +84,11 @@
modules = [ modules = [
impermanence.nixosModules.impermanence impermanence.nixosModules.impermanence
./systems/zeus/configuration.nix ./systems/zeus/configuration.nix
nixos-hardware.nixosModules.supermicro
nixos-hardware.nixosModules.common-cpu-amd
nixos-hardware.nixosModules.common-cpu-amd-pstate
nixos-hardware.nixosModules.common-cpu-amd-zenpower
nixos-hardware.nixosModules.common-pc
]; ];
}; };
orangepihole = nixpkgs.lib.nixosSystem { orangepihole = nixpkgs.lib.nixosSystem {

View file

@ -10,9 +10,6 @@
]; ];
boot = { boot = {
blacklistedKernelModules = [ "k10temp" ];
extraModulePackages = with config.boot.kernelPackages; [ zenpower ];
kernelParams = [ "amd_pstate=passive" ];
loader.systemd-boot.enable = true; loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true; loader.efi.canTouchEfiVariables = true;
binfmt.registrations.appimage = { binfmt.registrations.appimage = {
@ -25,7 +22,6 @@
}; };
tmp.cleanOnBoot = true; tmp.cleanOnBoot = true;
}; };
powerManagement.cpuFreqGovernor = "schedutil";
sops.secrets."cdombroski/password" = { sops.secrets."cdombroski/password" = {
neededForUsers = true; neededForUsers = true;
sopsFile = ../../secrets/smolboi/users.yaml; sopsFile = ../../secrets/smolboi/users.yaml;