SHARE
TWEET

Untitled

a guest Jun 14th, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 GRUB 2 boot loader.
  14.    boot.loader.grub.enable = true;
  15.    boot.loader.grub.version = 2;
  16.   # boot.loader.grub.efiSupport = true;
  17.   # boot.loader.grub.efiInstallAsRemovable = true;
  18.   # boot.loader.efi.efiSysMountPoint = "/boot/efi";
  19.   # Define on which hard drive you want to install Grub.
  20.    boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
  21.    
  22.   networking.hostName = "nixos-virtualbox"; # Define your hostname.
  23.   # networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant.
  24.   networking.networkmanager.enable = true;
  25.   # Select internationalisation properties.
  26.   # i18n = {
  27.   #   consoleFont = "Lat2-Terminus16";
  28.   #   consoleKeyMap = "us";
  29.   #   defaultLocale = "en_US.UTF-8";
  30.   # };
  31.  
  32.   # Set your time zone.
  33.    time.timeZone = "America/Kentucky/Monticello";
  34.  
  35.   # List packages installed in system profile. To search by name, run:
  36.   # $ nix-env -qaP | grep wget
  37.   # environment.systemPackages = with pkgs; [
  38.   #   wget
  39.   # ];
  40.  
  41.   # List services that you want to enable:
  42.    
  43.   # Stuff
  44.    services.xserver.enable = true;
  45.    hardware.pulseaudio.enable = true;
  46.    services.xserver.libinput.enable = true;
  47.    virtualisation.virtualbox.guest.enable = true;
  48.    services.xserver.displayManager.lightdm.enable = true;
  49.    services.xserver.windowManager.i3.enable = true;
  50.    services.xserver.desktopManager.xfce.thunarPlugins = [ pkgs.xfce.thunar-archive-plugin pkgs.xfce.thunar_volman  ];
  51.    environment.systemPackages = [ pkgs.chromium pkgs.xfce.thunar pkgs.nitrogen pkgs.terminator ];
  52.  
  53.  
  54.   # Enable the OpenSSH daemon.
  55.   # services.openssh.enable = true;
  56.  
  57.   # Open ports in the firewall.
  58.   # networking.firewall.allowedTCPPorts = [ ... ];
  59.   # networking.firewall.allowedUDPPorts = [ ... ];
  60.   # Or disable the firewall altogether.
  61.   # networking.firewall.enable = false;
  62.  
  63.   # Enable CUPS to print documents.
  64.   # services.printing.enable = true;
  65.  
  66.   # Enable the X11 windowing system.
  67.   # services.xserver.enable = true;
  68.   # services.xserver.layout = "us";
  69.   # services.xserver.xkbOptions = "eurosign:e";
  70.  
  71.   # Enable the KDE Desktop Environment.
  72.   # services.xserver.displayManager.sddm.enable = true;
  73.   # services.xserver.desktopManager.plasma5.enable = true;
  74.  
  75.   # Define a user account. Don't forget to set a password with ‘passwd’.
  76.    users.extraUsers.babs = {
  77.      isNormalUser = true;
  78.      extraGroups = [ "wheel" "networkmanager" ];
  79.      home = "/home/babs";
  80.      uid = 1000;
  81.      initialPassword = "hunter2";
  82.    };
  83.   # The NixOS release to be compatible with for stateful data such as databases.
  84.    system.stateVersion = "17.03";
  85.  
  86. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top