feat: initial commit; NixOS Era
This commit is contained in:
42
blueplum.nix
Normal file
42
blueplum.nix
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib ? pkgs.lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
concat = strings: lib.concatStringsSep " " strings;
|
||||
in
|
||||
{
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
|
||||
open = true;
|
||||
|
||||
nvidiaSettings = true;
|
||||
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
services.xserver.displayManager.setupCommands = concat [
|
||||
"${lib.getExe pkgs.xorg.xrandr}"
|
||||
concat
|
||||
[
|
||||
"--output DP-0"
|
||||
"--mode 1920x1080"
|
||||
"--pos 0x0"
|
||||
"--rate 144"
|
||||
"--primary"
|
||||
]
|
||||
concat
|
||||
[
|
||||
"--output HDMI-0"
|
||||
"--mode 1920x1080"
|
||||
"--pos 1920x0"
|
||||
"--rate 144"
|
||||
]
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user