diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2019-09-07 01:33:33 +0200 |
---|---|---|
committer | Andreas Rammhold <andreas@rammhold.de> | 2019-09-08 17:14:14 +0200 |
commit | f59b4cb8d545d3bb1bd954f9e3267cb7ebec3557 (patch) | |
tree | a2684fe5184fdfc58316117a153ca76cc4690df1 | |
parent | 2b605e96c289b5f43fc31f3c177d6622a2767142 (diff) | |
download | nixpkgs-f59b4cb8d545d3bb1bd954f9e3267cb7ebec3557.tar nixpkgs-f59b4cb8d545d3bb1bd954f9e3267cb7ebec3557.tar.gz nixpkgs-f59b4cb8d545d3bb1bd954f9e3267cb7ebec3557.tar.bz2 nixpkgs-f59b4cb8d545d3bb1bd954f9e3267cb7ebec3557.tar.lz nixpkgs-f59b4cb8d545d3bb1bd954f9e3267cb7ebec3557.tar.xz nixpkgs-f59b4cb8d545d3bb1bd954f9e3267cb7ebec3557.tar.zst nixpkgs-f59b4cb8d545d3bb1bd954f9e3267cb7ebec3557.zip |
nixos/tests/login: fix the seat test by loading sound drivers
It turned out that /dev/snd/* always exists even if there are no sound drivers loaded at all. Loading `snd` and `snd_timer` fixes that situation. It is probably fair to assume someone that wants to use sound also enables that in the NixOS configuration.
-rw-r--r-- | nixos/tests/login.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/tests/login.nix b/nixos/tests/login.nix index 9844ad492e8..2a7c063d303 100644 --- a/nixos/tests/login.nix +++ b/nixos/tests/login.nix @@ -9,6 +9,7 @@ import ./make-test.nix ({ pkgs, latestKernel ? false, ... }: machine = { pkgs, lib, ... }: { boot.kernelPackages = lib.mkIf latestKernel pkgs.linuxPackages_latest; + sound.enable = true; # needed for the factl test, /dev/snd/* exists without them but udev doesn't care then }; testScript = |