mega north
This commit is contained in:
@@ -1,28 +1,35 @@
|
||||
{ config, lib, user, host, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
environment.systemPackages = if host == "NxNORTH" then with pkgs; [
|
||||
ntfs3g
|
||||
btrfs-progs
|
||||
] else with pkgs; [
|
||||
ntfs3g
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "vmd" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
# boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-label/nixos";
|
||||
fsType = "ext4";
|
||||
# fileSystems = if lib.pathExists /dev/disk/by-label/shared == true then {
|
||||
# "/" = { device = "/dev/disk/by-label/nixos"; fsType = "ext4"; };
|
||||
# "/boot" = { device = "/dev/disk/by-label/EFI"; fsType = "vfat"; };
|
||||
# "/home/${user}/shared" = { device = "/dev/disk/by-label/shared"; fsType = if host == "NxXPS" then "ntfs" else "btrfs"; };
|
||||
# } else {
|
||||
# "/" = { device = "/dev/disk/by-label/nixos"; fsType = "ext4"; };
|
||||
# "/boot" = { device = "/dev/disk/by-label/EFI"; fsType = "vfat"; };
|
||||
# };
|
||||
fileSystems = {
|
||||
"/" = { device = "/dev/disk/by-label/nixos"; fsType = "ext4"; };
|
||||
"/boot" = { device = "/dev/disk/by-label/EFI"; fsType = "vfat"; };
|
||||
"/home/${user}/shared" = { device = "/dev/disk/by-label/shared"; fsType = if host == "NxXPS" then "ntfs" else "btrfs"; };
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-label/EFI";
|
||||
fsType = "vfat";
|
||||
};
|
||||
#fileSystems."/home/${user}/shared" = if {
|
||||
# device = "/dev/disk/by-label/shared";
|
||||
# fsType = if host == "NxXPS" then "ntfs" else "btrfs";
|
||||
#};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-label/swap"; }
|
||||
@@ -35,20 +42,18 @@
|
||||
|
||||
# from nixos-hardware
|
||||
services.thermald.enable = lib.mkDefault true;
|
||||
boot.extraModprobeConfig = ''
|
||||
boot.extraModprobeConfig = if host == "NxXPS" then ''
|
||||
options iwlwifi 11n_disable=8
|
||||
'';
|
||||
boot.initrd.kernelModules = [ "i915" ];
|
||||
'' else "";
|
||||
boot.initrd.kernelModules = if host == "NxXPS" then [ "i915" ] else [];
|
||||
|
||||
environment.variables = {
|
||||
environment.variables = if host == "NxXPS" then {
|
||||
VDPAU_DRIVER = lib.mkIf config.hardware.opengl.enable (lib.mkDefault "va_gl");
|
||||
};
|
||||
} else {};
|
||||
|
||||
hardware.opengl.extraPackages = with pkgs; [
|
||||
hardware.opengl.extraPackages = if host == "NxXPS" then with pkgs; [
|
||||
(if (lib.versionOlder (lib.versions.majorMinor lib.version) "23.11") then vaapiIntel else intel-vaapi-driver)
|
||||
libvdpau-va-gl
|
||||
intel-media-driver
|
||||
];
|
||||
|
||||
|
||||
] else [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user