Personal-use NixOS configuration
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Automatically handle laptop module imports

encode42 f9f8022e a57d9428

+6 -4
+2 -2
hardware/gpu/nvidia.nix
··· 12 12 ]; 13 13 14 14 services.xserver.videoDrivers = [ 15 - "modesetting" # TODO: add if isLaptop 16 15 "nvidia" 17 - ]; 16 + ] 17 + ++ lib.optional isLaptop "modesetting"; 18 18 19 19 hardware.nvidia = { 20 20 open = false; # Currently unable to build
-1
hosts/decryption/default.nix
··· 10 10 nixos-hardware.nixosModules.common-pc-ssd 11 11 ./hardware-configuration.nix 12 12 ./disk.nix 13 - (flakeRoot + /hardware/laptop.nix) # TODO: Automatically add this in mkSystem 14 13 (flakeRoot + /hardware/cpu/amd.nix) 15 14 (flakeRoot + /hardware/gpu/nvidia.nix) 16 15
+4 -1
lib/mkSystem.nix
··· 6 6 { 7 7 name, 8 8 system, 9 + extraModules ? [ ], 9 10 isLaptop ? false, 10 11 }: 11 12 ··· 36 37 inputs.disko.nixosModules.disko 37 38 38 39 ../hosts/${name} 39 - ]; 40 + ] 41 + ++ extraModules 42 + ++ inputs.nixpkgs.lib.optional isLaptop ../hardware/laptop.nix; 40 43 41 44 specialArgs = { 42 45 inherit