Added nix files
This commit is contained in:
28
hosts/desktop.nix
Normal file
28
hosts/desktop.nix
Normal 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"
|
||||
'';
|
||||
};
|
||||
}
|
24
hosts/laptop.nix
Normal file
24
hosts/laptop.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
networking.hostName = "laptop";
|
||||
|
||||
# Intel VA-API for GPU acceleration
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
extraPackages = with pkgs; [
|
||||
intel-media-driver
|
||||
libva-utils
|
||||
];
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices = {
|
||||
root = {
|
||||
device = "/dev/sda2";
|
||||
preLVM = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.xserver.videoDrivers = [ "intel" ];
|
||||
}
|
32
hosts/vm.nix
Normal file
32
hosts/vm.nix
Normal file
@ -0,0 +1,32 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
networking.hostName = "vm";
|
||||
|
||||
# Use DHCP for networking
|
||||
networking.useDHCP = true;
|
||||
|
||||
# Disk encryption setup
|
||||
boot.initrd.luks.devices = {
|
||||
root = {
|
||||
device = "/dev/sda2";
|
||||
preLVM = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Hyprland setup without GPU acceleration
|
||||
services.xserver.enable = true;
|
||||
services.xserver.videoDrivers = [ ];
|
||||
|
||||
# Use the same package set as desktop/laptop
|
||||
environment.systemPackages = with pkgs; [
|
||||
alacritty
|
||||
brave
|
||||
helix
|
||||
rustc cargo
|
||||
go
|
||||
nodejs
|
||||
discord
|
||||
spotify
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user