{pkgs, config, ...}: with pkgs;
{
  imports =
    [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
      # machine specific:
      ./machine.nix
      # on every machine:
      ../../common.nix
      # non realtime:
      ../../commonNonRT.nix
      # music tweaks and progs:
       ../../music.nix
    ];

  networking.hostName = "mixos";

  services = {
    xserver = {
      autorun =  false;
      windowManager.default = "i3" ;
      windowManager.i3.enable = true;
    };
    nix-serve = {
      enable = true;
      secretKeyFile = "/etc/nix/nix-serve.sec";
    };
    # name the soundcards
    udev.extraRules = ''
      DEVPATH=="/devices/pci0000:00/0000:00:1e.0/0000:04:01.0/sound/card?", ATTR{id}="RME_0"
      DEVPATH=="/devices/pci0000:00/0000:00:1e.0/0000:04:02.0/sound/card?", ATTR{id}="RME_1"
    '';
  };


  boot.blacklistedKernelModules = [ "mgag200" ];

#for running alsa trough jack
# boot.kernelModules = [ "snd-aloop" ];
#sound.enableMediaKeys = true;

  musnix.rtirq.nameList = "rtc0 snd";
  # musnix.rtirq.nonThreaded = "rtc0 snd_rme9652";
}
