about summary refs log tree commit diff
path: root/nixos/tests/kernel-latest-ath-user-regd.nix
blob: 09e1da9d2affe4e122927205efea31201d72fd01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import ./make-test-python.nix ({ pkgs, ...} : {
  name = "kernel-latest-ath-user-regd";
  meta = with pkgs.lib.maintainers; {
    maintainers = [ veehaitch ];
  };

  nodes.machine = { pkgs, ... }:
    {
      boot.kernelPackages = pkgs.linuxPackages_latest;
      networking.wireless.athUserRegulatoryDomain = true;
    };

  testScript =
    ''
      assert "CONFIG_ATH_USER_REGD=y" in machine.succeed("zcat /proc/config.gz")
    '';
})