Advertisement
chadjoan

configuration.nix for Firefox+OpenJDK

Feb 14th, 2015
639
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | None | 0 0
  1. # Edit this configuration file to define what should be installed on
  2. # your system. Help is available in the configuration.nix(5) man page
  3. # and in the NixOS manual (accessible by running ‘nixos-help’).
  4.  
  5. { config, pkgs, ... }:
  6.  
  7. {
  8. imports =
  9. [ # Include the results of the hardware scan.
  10. ./hardware-configuration.nix
  11. ];
  12.  
  13. # Use the gummiboot efi boot loader.
  14. boot.loader.gummiboot.enable = true;
  15. boot.loader.efi.canTouchEfiVariables = true;
  16.  
  17. # networking.hostName = "nixos"; # Define your hostname.
  18. networking.hostName = "tvbox"; # Define your hostname.
  19. networking.hostId = "57c04a12";
  20. # networking.wireless.enable = true; # Enables wireless.
  21.  
  22. # Select internationalisation properties.
  23. # i18n = {
  24. # consoleFont = "lat9w-16";
  25. # consoleKeyMap = "us";
  26. # defaultLocale = "en_US.UTF-8";
  27. # };
  28.  
  29. # List packages installed in system profile. To search by name, run:
  30. # $ nix-env -qaP | grep wget
  31. # environment.systemPackages = with pkgs; [
  32. # wget
  33. # ];
  34.  
  35. # List services that you want to enable:
  36.  
  37. # Enable the OpenSSH daemon.
  38. services.openssh.enable = true;
  39.  
  40. # Enable CUPS to print documents.
  41. # services.printing.enable = true;
  42.  
  43. # Enable the X11 windowing system.
  44. services.xserver.enable = true;
  45. services.xserver.layout = "us";
  46. # services.xserver.xkbOptions = "eurosign:e";
  47.  
  48. # Enable the KDE Desktop Environment.
  49. services.xserver.displayManager.kdm.enable = true;
  50. services.xserver.desktopManager.kde4.enable = true;
  51.  
  52. # Define a user account. Don't forget to set a password with ‘passwd’.
  53. # users.extraUsers.guest = {
  54. # isNormalUser = true;
  55. # uid = 1000;
  56. # };
  57.  
  58. # From https://nixos.org/wiki/Enable_Browser_Plugins
  59. # In NixOS you can configure nixpkgs options by adding a nixpkgs.config
  60. # section to /etc/nixos/configuration.nix. This has no effect on nix-env
  61. # commands but does apply to packages installed via the
  62. # environment.systemPackages
  63. # list. [...]
  64. nixpkgs.config = {
  65.  
  66. allowUnfree = true;
  67.  
  68. firefox = {
  69. enableGoogleTalkPlugin = true;
  70. enableAdobeFlash = true;
  71. jre = true;
  72. };
  73.  
  74. chromium = {
  75. enablePepperFlash = true; # Chromium removed support for Mozilla (NPAPI) plugins so Adobe Flash no longer works
  76. enablePepperPDF = true;
  77. jre = true;
  78. };
  79.  
  80. };
  81.  
  82. environment.systemPackages = [
  83. # KDE packages
  84. pkgs.kde4.kdemultimedia pkgs.kde4.kdegraphics pkgs.kde4.kdeutils pkgs.kde4.applications pkgs.kde4.kdegames pkgs.kde4.kdeedu
  85. pkgs.kde4.kdebindings pkgs.kde4.kdeaccessibility pkgs.kde4.kde_baseapps pkgs.kde4.kactivities pkgs.kde4.kdeadmin
  86. pkgs.kde4.kdeartwork pkgs.kde4.kde_base_artwork pkgs.kde4.kdenetwork pkgs.kde4.kdepim pkgs.kde4.kdepimlibs
  87. pkgs.kde4.kdeplasma_addons pkgs.kde4.kdesdk pkgs.kde4.kdetoys pkgs.kde4.kde_wallpapers pkgs.kde4.kdewebdev pkgs.kde4.oxygen_icons
  88. pkgs.kde4.kdebase_workspace pkgs.kde4.kdelibs pkgs.kde4.kdevelop pkgs.kde4.kdevplatform
  89.  
  90. # Browsers
  91. pkgs.firefoxWrapper pkgs.chromium
  92.  
  93. # Make NixOS use OpenJDK (IcedTea) instead of Oracle JDK/JRE.
  94. # (Actually, this doesn't work; it will try to use Oracle JDK anyways.)
  95. #pkgs.jdk
  96. ];
  97.  
  98. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement