From 5487b1705b91f3c588ff1e9948a233132baa0d45 Mon Sep 17 00:00:00 2001 From: Zeusina Date: Sun, 5 Jul 2026 15:37:36 +0300 Subject: [PATCH] feat: move hardware configuration to host dir && enable nvidia power management --- flake.nix | 4 ++-- .../kachu-pc/hardware-configuration.nix | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) rename hardware-configuration.nix => hosts/kachu-pc/hardware-configuration.nix (97%) diff --git a/flake.nix b/flake.nix index ecda3d2..961d4b6 100644 --- a/flake.nix +++ b/flake.nix @@ -4,7 +4,7 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; nix-darwin.url = "github:nix-darwin/nix-darwin/master"; -# nix-darwin.inputs.nixpkgs.follows = "nixpkgs"; + # nix-darwin.inputs.nixpkgs.follows = "nixpkgs"; spicetify-nix.url = "github:Gerg-L/spicetify-nix"; }; @@ -33,7 +33,7 @@ system = "x86_64-linux"; specialArgs = {inherit inputs self;}; modules = [ - ./hardware-configuration.nix + ./hosts/kachu-pc/hardware-configuration.nix ./hosts/kachu-pc/configuration.nix ./shared/programs/spicetify.nix inputs.spicetify-nix.nixosModules.default diff --git a/hardware-configuration.nix b/hosts/kachu-pc/hardware-configuration.nix similarity index 97% rename from hardware-configuration.nix rename to hosts/kachu-pc/hardware-configuration.nix index 98500b5..ca8e009 100644 --- a/hardware-configuration.nix +++ b/hosts/kachu-pc/hardware-configuration.nix @@ -53,5 +53,6 @@ open = true; nvidiaSettings = true; package = config.boot.kernelPackages.nvidiaPackages.stable; + powerManagement.enable = true; }; }