Added nix files

This commit is contained in:
2025-03-20 15:26:29 +00:00
parent bf0779ae97
commit 5965d43eff
9 changed files with 234 additions and 0 deletions

28
hosts/desktop.nix Normal file
View File

@@ -0,0 +1,28 @@
{ config, pkgs, ... }:
{
networking.hostName = "desktop";
# NVIDIA proprietary drivers
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
modesetting.enable = true;
open = false;
nvidiaSettings = true;
};
boot.initrd.luks.devices = {
root = {
device = "/dev/sda2";
preLVM = true;
};
};
# Dual display configuration
services.xserver = {
screenSection = ''
Option "metamodes" "HDMI-0: 1920x1080 +0+0, DP-0: 1920x1080 +1920+0"
'';
};
}