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
- ];
- nixpkgs.config.allowUnfree = true;
- # Use the gummiboot efi boot loader.
- boot.loader.gummiboot.enable = true;
- boot.loader.efi.canTouchEfiVariables = true;
- networking = {
- hostName = "nixos"; # Define your hostname.
- # wireless.enable = true; # Enables wireless support via wpa_supplicant.
- networkmanager.enable = true;
- };
- hardware.bluetooth.enable = true;
- fonts = {
- enableFontDir = true;
- enableGhostscriptFonts = true;
- fonts = with pkgs; [
- corefonts
- inconsolata
- source-code-pro
- ubuntu_font_family
- unifont
- ipaexfont
- ];
- };
- # Select internationalisation properties.
- i18n = {
- consoleFont = "su12x22";
- consoleKeyMap = "us";
- defaultLocale = "en_US.UTF-8";
- inputMethod.enabled = "ibus";
- inputMethod.ibus.engines = with pkgs.ibus-engines; [ mozc ];
- inputMethod.fcitx.engines = with pkgs.fcitx-engines; [ mozc ];
- };
- # Set your time zone.
- time.timeZone = "Asia/Tokyo";
- # List packages installed in system profile. To search by name, run:
- # $ nix-env -qaP | grep wget
- environment.systemPackages = with pkgs; [
- manpages
- w3m
- wget
- git
- which
- tmux
- tig
- vim
- emacs
- chromium
- terminator
- dmenu
- stalonetray
- haskellPackages.xmobar
- gnome3.networkmanagerapplet
- xsel
- powertop
- rxvt_unicode-with-plugins
- numix-icon-theme
- awscli
- gnome3.gnome-bluetooth
- silver-searcher
- docker
- ];
- # 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.videoDrivers = [ "nvidiaLegacy340" ];
- services.xserver.dpi = 150;
- hardware.opengl.driSupport32Bit = true;
- services.tlp.enable = true;
- # services.xserver.xkbOptions = "eurosign:e";
- services.xserver.synaptics.enable = true;
- services.xserver.synaptics.twoFingerScroll = true;
- services.xserver.synaptics.accelFactor = "0.017";
- services.xserver.synaptics.minSpeed = "0.6";
- services.xserver.synaptics.maxSpeed = "2.0";
- services.xserver.synaptics.scrollDelta = -350;
- services.xserver.synaptics.fingersMap = [1 3 2];
- # Enable the KDE Desktop Environment.
- # KDE5
- services.xserver.displayManager.sddm.enable = true;
- services.xserver.desktopManager.kde5.enable = true;
- # Enlightenment
- # services.xserver.desktopManager.e19.enable = true;
- # Gnome3
- # services.xserver.displayManager.gdm.enable = true;
- # services.xserver.desktopManager.gnome3.enable = true;
- ## XMonad
- # services.xserver.windowManager.xmonad.enable = true;
- # services.xserver.windowManager.xmonad.extraPackages = haskellPackages: [
- # haskellPackages.xmobar
- # ];
- # services.xserver.windowManager.xmonad.enableContribAndExtras = true;
- ## Docker
- virtualisation.docker.enable = true;
- # Define a user account. Don't forget to set a password with ‘passwd’.
- users.extraUsers.k2nr = {
- home = "/home/k2nr";
- isNormalUser = true;
- extraGroups = [ "wheel" "docker"];
- password = "password";
- };
- # The NixOS release to be compatible with for stateful data such as databases.
- system.stateVersion = "16.03";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement