summary refs log tree commit diff
path: root/modules/hardware/all-firmware.nix
diff options
context:
space:
mode:
authorArie Middelkoop <amiddelk@gmail.com>2012-01-14 09:30:24 +0000
committerArie Middelkoop <amiddelk@gmail.com>2012-01-14 09:30:24 +0000
commit4d26262878fc03336a85f2e1523efc345baa3c5f (patch)
tree35f82fe6abc366df6faf531961b8b8d9cc16a01b /modules/hardware/all-firmware.nix
parent50d7a38c8248a6fa6df95520a2645634b4c34fb9 (diff)
downloadnixpkgs-4d26262878fc03336a85f2e1523efc345baa3c5f.tar
nixpkgs-4d26262878fc03336a85f2e1523efc345baa3c5f.tar.gz
nixpkgs-4d26262878fc03336a85f2e1523efc345baa3c5f.tar.bz2
nixpkgs-4d26262878fc03336a85f2e1523efc345baa3c5f.tar.lz
nixpkgs-4d26262878fc03336a85f2e1523efc345baa3c5f.tar.xz
nixpkgs-4d26262878fc03336a85f2e1523efc345baa3c5f.tar.zst
nixpkgs-4d26262878fc03336a85f2e1523efc345baa3c5f.zip
Some renaming as was mentioned on the mailinglist.
Also, removed the firmware-free option because that firmware is already in the kernel package and thus causing collisions otherwise.

svn path=/nixos/trunk/; revision=31527
Diffstat (limited to 'modules/hardware/all-firmware.nix')
-rw-r--r--modules/hardware/all-firmware.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/hardware/all-firmware.nix b/modules/hardware/all-firmware.nix
new file mode 100644
index 00000000000..9ef7b1523fc
--- /dev/null
+++ b/modules/hardware/all-firmware.nix
@@ -0,0 +1,26 @@
+{pkgs, config, ...}:
+
+{
+
+  ###### interface
+
+  options = {
+
+    hardware.enableAllFirmware = pkgs.lib.mkOption {
+      default = false;
+      type = pkgs.lib.types.bool;
+      description = ''
+        Turn on this option if you want to enable all the firmware shipped with Debian/Ubuntu.
+      '';
+    };
+
+  };
+
+
+  ###### implementation
+
+  config = pkgs.lib.mkIf config.hardware.enableAllFirmware {
+    hardware.firmware = [ pkgs.firmwareLinuxNonfree ];
+  };
+
+}