Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Edit this configuration file to define what should be installed on
- # your system. Help is available in the configuration.nix(5) man page
- # and in the NixOS manual (accessible by running ‘nixos-help’).
- { config, pkgs, ... }:
- {
- imports =
- [ # Include the results of the hardware scan.
- ./hardware-configuration.nix
- ];
- # Use the gummiboot efi boot loader.
- boot.loader.gummiboot.enable = true;
- boot.loader.efi.canTouchEfiVariables = true;
- # networking.hostName = "nixos"; # Define your hostname.
- networking.hostName = "tvbox"; # Define your hostname.
- networking.hostId = "57c04a12";
- # networking.wireless.enable = true; # Enables wireless.
- # Select internationalisation properties.
- # i18n = {
- # consoleFont = "lat9w-16";
- # consoleKeyMap = "us";
- # defaultLocale = "en_US.UTF-8";
- # };
- # List packages installed in system profile. To search by name, run:
- # $ nix-env -qaP | grep wget
- # environment.systemPackages = with pkgs; [
- # wget
- # ];
- # List services that you want to enable:
- # Enable the OpenSSH daemon.
- services.openssh.enable = true;
- # Enable CUPS to print documents.
- # services.printing.enable = true;
- # Enable the X11 windowing system.
- services.xserver.enable = true;
- services.xserver.layout = "us";
- # services.xserver.xkbOptions = "eurosign:e";
- # Enable the KDE Desktop Environment.
- services.xserver.displayManager.kdm.enable = true;
- services.xserver.desktopManager.kde4.enable = true;
- # Define a user account. Don't forget to set a password with ‘passwd’.
- # users.extraUsers.guest = {
- # isNormalUser = true;
- # uid = 1000;
- # };
- # From https://nixos.org/wiki/Enable_Browser_Plugins
- # In NixOS you can configure nixpkgs options by adding a nixpkgs.config
- # section to /etc/nixos/configuration.nix. This has no effect on nix-env
- # commands but does apply to packages installed via the
- # environment.systemPackages
- # list. [...]
- nixpkgs.config = {
- allowUnfree = true;
- firefox = {
- enableGoogleTalkPlugin = true;
- enableAdobeFlash = true;
- jre = true;
- };
- chromium = {
- enablePepperFlash = true; # Chromium removed support for Mozilla (NPAPI) plugins so Adobe Flash no longer works
- enablePepperPDF = true;
- jre = true;
- };
- };
- environment.systemPackages = [
- # KDE packages
- pkgs.kde4.kdemultimedia pkgs.kde4.kdegraphics pkgs.kde4.kdeutils pkgs.kde4.applications pkgs.kde4.kdegames pkgs.kde4.kdeedu
- pkgs.kde4.kdebindings pkgs.kde4.kdeaccessibility pkgs.kde4.kde_baseapps pkgs.kde4.kactivities pkgs.kde4.kdeadmin
- pkgs.kde4.kdeartwork pkgs.kde4.kde_base_artwork pkgs.kde4.kdenetwork pkgs.kde4.kdepim pkgs.kde4.kdepimlibs
- pkgs.kde4.kdeplasma_addons pkgs.kde4.kdesdk pkgs.kde4.kdetoys pkgs.kde4.kde_wallpapers pkgs.kde4.kdewebdev pkgs.kde4.oxygen_icons
- pkgs.kde4.kdebase_workspace pkgs.kde4.kdelibs pkgs.kde4.kdevelop pkgs.kde4.kdevplatform
- # Browsers
- pkgs.firefoxWrapper pkgs.chromium
- # Make NixOS use OpenJDK (IcedTea) instead of Oracle JDK/JRE.
- # (Actually, this doesn't work; it will try to use Oracle JDK anyways.)
- #pkgs.jdk
- ];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement