2019-05-09 18:28:40 +02:00
|
|
|
{ pkgs, ... }:
|
2019-02-26 13:44:40 +01:00
|
|
|
|
|
|
|
let
|
2019-05-08 20:18:52 +02:00
|
|
|
musnix_channel = (fetchTarball "https://github.com/musnix/musnix/archive/master.tar.gz");
|
2019-03-27 13:48:09 +01:00
|
|
|
# vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
|
2019-02-26 13:44:40 +01:00
|
|
|
in {
|
2019-05-08 20:18:52 +02:00
|
|
|
imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
|
|
|
|
musnix_channel ];
|
|
|
|
|
|
|
|
musnix = {
|
|
|
|
enable = true;
|
|
|
|
alsaSeq.enable = true;
|
|
|
|
ffado.enable = true;
|
|
|
|
soundcardPciId = "00:14.0";
|
|
|
|
kernel.realtime = true;
|
|
|
|
kernel.packages = pkgs.linuxPackages_4_19_rt;
|
|
|
|
rtirq.enable = true;
|
|
|
|
};
|
2019-02-26 13:44:40 +01:00
|
|
|
|
|
|
|
boot = {
|
|
|
|
loader.systemd-boot.enable = true;
|
|
|
|
loader.efi.canTouchEfiVariables = true;
|
|
|
|
cleanTmpDir = true;
|
2019-05-08 20:18:52 +02:00
|
|
|
# kernelPackages = pkgs.linuxPackages_4_19;
|
|
|
|
|
2019-02-26 13:44:40 +01:00
|
|
|
initrd.kernelModules = [ "hid-multitouch" ];
|
|
|
|
initrd.availableKernelModules = [ "hid-microsoft" "hid-multitouch" "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
|
2019-05-09 18:28:40 +02:00
|
|
|
kernelModules = [ "kvm-intel" "hid-microsoft" "hid-multitouch" "uinput" ];
|
2019-05-08 20:18:52 +02:00
|
|
|
kernel.sysctl = { "fs.inotify.max_user_watches" = 524288; };
|
|
|
|
kernelParams = [ "threadirq" ];
|
2019-02-26 13:44:40 +01:00
|
|
|
extraModulePackages = [ ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/" =
|
|
|
|
{ device = "/dev/disk/by-uuid/8c3a5a07-9ee1-4154-9f3f-6abc379073aa";
|
|
|
|
fsType = "ext4";
|
2019-05-08 20:18:52 +02:00
|
|
|
options = [ "noatime" ];
|
2019-02-26 13:44:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/boot" =
|
|
|
|
{ device = "/dev/disk/by-uuid/D2A2-C705";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
|
|
|
swapDevices = [ ];
|
|
|
|
|
|
|
|
hardware = {
|
2019-03-04 10:35:50 +01:00
|
|
|
firmware = with pkgs; [ firmwareLinuxNonfree firmware_surface ];
|
2019-02-26 13:44:40 +01:00
|
|
|
cpu.intel.updateMicrocode = true;
|
|
|
|
enableAllFirmware = true;
|
|
|
|
enableKSM = true;
|
|
|
|
opengl = {
|
|
|
|
driSupport = true;
|
2019-05-04 13:47:21 +02:00
|
|
|
extraPackages = with pkgs; [ intel-media-driver libvdpau-va-gl vaapiIntel vaapiVdpau intel-media-driver ];
|
2019-02-26 13:44:40 +01:00
|
|
|
driSupport32Bit = true;
|
2019-03-26 22:45:54 +01:00
|
|
|
extraPackages32 = with pkgs.pkgsi686Linux; [ libvdpau-va-gl vaapiIntel vaapiVdpau ];
|
2019-02-26 13:44:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
pulseaudio = {
|
|
|
|
enable = true;
|
|
|
|
support32Bit = true;
|
|
|
|
package = pkgs.pulseaudioFull;
|
|
|
|
zeroconf.discovery.enable = false;
|
|
|
|
extraClientConf = ''
|
|
|
|
autospawn = no
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
bluetooth = {
|
|
|
|
enable = true;
|
|
|
|
powerOnBoot = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
powerManagement = {
|
|
|
|
enable = true;
|
2019-05-08 20:18:52 +02:00
|
|
|
# cpuFreqGovernor = "powersave";
|
2019-02-26 13:44:40 +01:00
|
|
|
};
|
2019-03-26 22:45:54 +01:00
|
|
|
services.upower.enable = true;
|
2019-02-26 13:44:40 +01:00
|
|
|
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
}
|