* Option to enable support for the WIS GO7007.

svn path=/nixos/trunk/; revision=10491
This commit is contained in:
Eelco Dolstra 2008-02-04 10:52:58 +00:00
parent c30e7b0f13
commit 707e515f82
6 changed files with 36 additions and 8 deletions

View File

@ -23,6 +23,10 @@ rec {
}; };
}; };
networking = {
enableIntel3945ABGFirmware = true;
};
services = { services = {
sshd = { sshd = {

View File

@ -273,6 +273,21 @@
}; };
# Hm, this sounds like a catch-all...
hardware = {
enableGo7007 = mkOption {
default = false;
description = ''
Enable this option to get support for the WIS GO7007SB
multi-format video encoder, which is used in a number of
devices such as the Plextor ConvertX TV402U USB TV device.
'';
};
};
networking = { networking = {
hostName = mkOption { hostName = mkOption {
@ -1107,6 +1122,13 @@
"; ";
}; };
experimental = mkOption {
default = false;
description = "
Whether to use the new-style Apache configuration.
";
};
user = mkOption { user = mkOption {
default = "wwwrun"; default = "wwwrun";
description = " description = "

View File

@ -152,6 +152,7 @@ rec {
++ pkgs.lib.optional config.networking.enableIntel3945ABGFirmware pkgs.iwlwifi ++ pkgs.lib.optional config.networking.enableIntel3945ABGFirmware pkgs.iwlwifi
# !!! this should be declared by the xserver Upstart job. # !!! this should be declared by the xserver Upstart job.
++ pkgs.lib.optional (config.services.xserver.enable && config.services.xserver.videoDriver == "nvidia") pkgs.nvidiaDrivers ++ pkgs.lib.optional (config.services.xserver.enable && config.services.xserver.videoDriver == "nvidia") pkgs.nvidiaDrivers
++ pkgs.lib.optional config.hardware.enableGo7007 pkgs.wis_go7007
++ config.boot.extraModulePackages ++ config.boot.extraModulePackages
); );

View File

@ -30,7 +30,8 @@ let
++ pkgs.lib.optional config.networking.enableIntel3945ABGFirmware pkgs.iwlwifi3945ucode ++ pkgs.lib.optional config.networking.enableIntel3945ABGFirmware pkgs.iwlwifi3945ucode
++ config.services.udev.addFirmware; ++ config.services.udev.addFirmware;
extraUdevPkgs = extraUdevPkgs =
pkgs.lib.optional config.services.hal.enable pkgs.hal; pkgs.lib.optional config.services.hal.enable pkgs.hal
++ pkgs.lib.optional config.hardware.enableGo7007 pkgs.wis_go7007;
sndMode = config.services.udev.sndMode; sndMode = config.services.udev.sndMode;
}) })
@ -152,7 +153,7 @@ let
}) })
# Apache httpd. # Apache httpd.
++ optional config.services.httpd.enable ++ optional (config.services.httpd.enable && !config.services.httpd.experimental)
(import ../upstart-jobs/httpd.nix { (import ../upstart-jobs/httpd.nix {
inherit config pkgs; inherit config pkgs;
inherit (pkgs) glibc; inherit (pkgs) glibc;
@ -161,12 +162,10 @@ let
}) })
# Apache httpd (new style). # Apache httpd (new style).
/* ++ optional (config.services.httpd.enable && config.services.httpd.experimental)
++ optional config.services.httpd.enable
(import ../upstart-jobs/apache-httpd { (import ../upstart-jobs/apache-httpd {
inherit config pkgs; inherit config pkgs;
}) })
*/
# MySQL server # MySQL server
++ optional config.services.mysql.enable ++ optional config.services.mysql.enable

View File

@ -43,5 +43,6 @@ KERNEL=="seq", NAME="snd/%k", MODE="@sndMode@"
KERNEL=="kqemu", NAME="%k", MODE="0666" KERNEL=="kqemu", NAME="%k", MODE="0666"
# Firmware loading. # Firmware loading.
SUBSYSTEM=="firmware", ACTION=="add", RUN+="@firmwareLoader@" SUBSYSTEM=="firmware", ACTION=="add", RUN+="@firmwareLoader@"

View File

@ -32,9 +32,10 @@ let
}; };
# The udev configuration file # The udev configuration file
conf = writeText "udev.conf" " conf = writeText "udev.conf" ''
udev_rules=\"${udevRules}\" udev_rules="${udevRules}"
"; #udev_log="debug"
'';
# Dummy file indicating whether we've run udevtrigger/udevsettle. # Dummy file indicating whether we've run udevtrigger/udevsettle.
# Since that *recreates* all device nodes with default permissions, # Since that *recreates* all device nodes with default permissions,