Moved hosts configurations to instances
This commit is contained in:
parent
4d706138d6
commit
cbe62f3201
24 changed files with 344 additions and 344 deletions
|
|
@ -1,30 +0,0 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
{ pkgs, ... }: {
|
||||
|
||||
boot = { initrd.kernelModules = [ "i915" ]; };
|
||||
|
||||
hardware.nvidia = {
|
||||
# modesetting.enable = true;
|
||||
# package = pkgs.linuxPackages.nvidia_x11;
|
||||
prime = {
|
||||
offload.enable = false;
|
||||
sync.enable = true;
|
||||
intelBusId = "PCI:0:2:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
};
|
||||
|
||||
programs.gamemode = {
|
||||
enable = true;
|
||||
settings = {
|
||||
custom = {
|
||||
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
|
||||
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue