Skip to content

Commit

Permalink
chore(lib): updates
Browse files Browse the repository at this point in the history
  • Loading branch information
raexera committed Nov 21, 2024
1 parent b664346 commit bea7914
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion home/raexera/shell/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
'';

shellAliases = let
inherit (lib.meta) getExe;
inherit (lib) getExe;
inherit (pkgs) bat ripgrep dust procs;
in {
cat = "${getExe bat} --color=always --theme=base16 --style=plain --paging=never";
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions hosts/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
inputs,
lib,
self,
themes,
...
}: {
flake.nixosConfigurations = let
inherit (lib.lists) concatLists flatten singleton;
inherit (inputs.self) lib;
inherit (lib) concatLists flatten singleton;

nixosModules = [
inputs.disko.nixosModules.default
Expand Down
10 changes: 5 additions & 5 deletions hosts/modules/hardware/gpu/nvidia.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
lib,
...
}: let
inherit (lib) mkIf versionOlder;
inherit (lib) mkIf mkDefault versionOlder;

nvStable = config.boot.kernelPackages.nvidiaPackages.stable.version;
nvBeta = config.boot.kernelPackages.nvidiaPackages.beta.version;
Expand Down Expand Up @@ -33,10 +33,10 @@ in {
};

hardware.nvidia = {
package = nvidiaPackage;
open = false;
modesetting.enable = true;
powerManagement.enable = true;
package = mkDefault nvidiaPackage;
open = mkDefault false;
modesetting.enable = mkDefault true;
powerManagement.enable = mkDefault true;
prime.offload = {
enable = mkIf (pCfg.nvidiaBusId != "" && (pCfg.intelBusId != "" || pCfg.amdgpuBusId != "")) true;
enableOffloadCmd = mkIf pCfg.offload.enable true;
Expand Down
5 changes: 0 additions & 5 deletions lib/default.nix

This file was deleted.

0 comments on commit bea7914

Please sign in to comment.