3
0
Fork 0
forked from mirrors/nixpkgs

* 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

@ -22,6 +22,10 @@ rec {
];
};
};
networking = {
enableIntel3945ABGFirmware = true;
};
services = {

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 = {
hostName = mkOption {
@ -1107,6 +1122,13 @@
";
};
experimental = mkOption {
default = false;
description = "
Whether to use the new-style Apache configuration.
";
};
user = mkOption {
default = "wwwrun";
description = "

View file

@ -152,6 +152,7 @@ rec {
++ pkgs.lib.optional config.networking.enableIntel3945ABGFirmware pkgs.iwlwifi
# !!! 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.hardware.enableGo7007 pkgs.wis_go7007
++ config.boot.extraModulePackages
);

View file

@ -30,7 +30,8 @@ let
++ pkgs.lib.optional config.networking.enableIntel3945ABGFirmware pkgs.iwlwifi3945ucode
++ config.services.udev.addFirmware;
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;
})
@ -152,7 +153,7 @@ let
})
# Apache httpd.
++ optional config.services.httpd.enable
++ optional (config.services.httpd.enable && !config.services.httpd.experimental)
(import ../upstart-jobs/httpd.nix {
inherit config pkgs;
inherit (pkgs) glibc;
@ -161,12 +162,10 @@ let
})
# Apache httpd (new style).
/*
++ optional config.services.httpd.enable
++ optional (config.services.httpd.enable && config.services.httpd.experimental)
(import ../upstart-jobs/apache-httpd {
inherit config pkgs;
})
*/
# MySQL server
++ optional config.services.mysql.enable

View file

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

View file

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