fix(options): Added options for laptop and nvidia mod
This commit is contained in:
1 parent
aa5da23957
commit
54e04477eb
2 files changed
+24
No files matched your search
@@ -8,6 +8,7 @@
|
|||||||
./modules/grab.nix
|
./modules/grab.nix
|
||||||
./modules/swap.nix
|
./modules/swap.nix
|
||||||
./modules/intel.nix
|
./modules/intel.nix
|
||||||
|
./modules/grab.nix
|
||||||
./modules/nvidia.nix
|
./modules/nvidia.nix
|
||||||
./modules/fingerprint.nix
|
./modules/fingerprint.nix
|
||||||
|
|
||||||
@@ -29,6 +30,9 @@
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
host.laptop = true;
|
||||||
|
host.nvidia.prime.enable = true;
|
||||||
|
|
||||||
programs.gamemode.enable = true;
|
programs.gamemode.enable = true;
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
|
|||||||
@@ -6,6 +6,26 @@
|
|||||||
./packages.nix
|
./packages.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
options = {
|
||||||
|
host = {
|
||||||
|
laptop = lib.mkEnableOption "laptop mode";
|
||||||
|
|
||||||
|
nvidia.prime = {
|
||||||
|
enable = lib.mkEnableOption "NVIDIA PRIME offload for hybrid graphics";
|
||||||
|
intelBusId = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "PCI:0:2:0";
|
||||||
|
description = "Intel/iGPU Bus ID used by NVIDIA PRIME.";
|
||||||
|
};
|
||||||
|
nvidiaBusId = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "PCI:1:0:0";
|
||||||
|
description = "NVIDIA dGPU Bus ID used by NVIDIA PRIME.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
networking.hostName = hostname;
|
networking.hostName = hostname;
|
||||||
time.timeZone = lib.mkDefault "Europe/Moscow";
|
time.timeZone = lib.mkDefault "Europe/Moscow";
|
||||||
|
|||||||
Reference in new issue
Block a user