diff --git a/flake.lock b/flake.lock index 1b62d82..eed10fa 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,25 @@ { "nodes": { + "autoaspm": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1759050207, + "narHash": "sha256-WnEKYqj0xs92DZscGVMmLytHOQlUWg3ZtZRdgCoTgQw=", + "owner": "notthebee", + "repo": "AutoASPM", + "rev": "0c73e0ed98e7bb3f6854bab9505e79a7f61654bd", + "type": "github" + }, + "original": { + "owner": "notthebee", + "repo": "AutoASPM", + "type": "github" + } + }, "copyparty": { "inputs": { "flake-utils": "flake-utils", @@ -179,6 +199,7 @@ }, "root": { "inputs": { + "autoaspm": "autoaspm", "copyparty": "copyparty", "home-manager": "home-manager", "nixpkgs": "nixpkgs_2", diff --git a/flake.nix b/flake.nix index 9fb03fa..26df58b 100644 --- a/flake.nix +++ b/flake.nix @@ -21,6 +21,10 @@ url = "github:notashelf/nvf/v0.8"; inputs.nixpkgs.follows = "nixpkgs"; }; + autoaspm = { + url = "github:notthebee/AutoASPM"; + inputs.nixpkgs.follows = "nixpkgs"; + }; copyparty.url = "github:9001/copyparty"; }; outputs = { self, nixpkgs, nixpkgs-unstable, ... }@inputs: diff --git a/hosts/default.nix b/hosts/default.nix index 092dc52..bfffc9b 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -5,19 +5,26 @@ inputs, ... }: { + + imports = [ + inputs.autoaspm.nixosModules.default + ]; + # base system package install list environment.systemPackages = with pkgs; [ wget curl rsync git - vim - lf age fzf - btop neofetch usbutils + pciutils + python3 + vim + lf + btop ]; # set timezone @@ -26,6 +33,11 @@ # allow proprietary packages nixpkgs.config.allowUnfree = true; + # power management + services.autoaspm.enable = true; + powerManagement.powertop.enable = true; + + # enable flakes nix.settings.experimental-features = ["nix-command" "flakes"];