nicks-nix-config/hosts/desktop/default.nix

51 lines
1.4 KiB
Nix
Raw Normal View History

{ config, ... }:
2023-02-25 17:19:34 -08:00
{
imports = [
./hardware-configuration.nix
];
2023-05-06 10:36:52 -07:00
networking.hosts = {
"10.0.0.183" = [ "headscale.nickiel.net" "files.nickiel.net" "git.nickiel.net" "nickiel.net" "jellyfin.nickiel.net" ];
2023-05-06 10:36:52 -07:00
};
services.xserver.videoDrivers = [ "nvidia" ];
hardware.opengl.enable = true;
2023-02-25 17:19:34 -08:00
# Optionally, you may need to select the appropriate driver version for your specific GPU.
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
2023-02-25 17:19:34 -08:00
hardware.bluetooth.enable = true;
time.hardwareClockInLocalTime = true;
boot.loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
grub = {
2023-08-05 09:30:37 -07:00
enable = true;
2023-02-25 17:19:34 -08:00
devices = [ "nodev" ];
efiSupport = true;
2023-08-05 09:30:37 -07:00
useOSProber = false;
2023-02-25 17:19:34 -08:00
extraEntries = ''
2023-08-05 09:30:37 -07:00
menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-6877-BD74' {
insmod part_gpt
insmod fat
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 6877-BD74
else
search --no-floppy --fs-uuid --set=root 6877-BD74
fi
chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
2023-02-25 17:19:34 -08:00
'';
};
};
2023-03-09 19:33:18 -08:00
boot.supportedFilesystems = [ "ntfs" ];
2023-02-25 17:19:34 -08:00
}