Created
October 9, 2015 16:28
-
-
Save Radvendii/bf3799a4f332fc03468a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 GRUB 2 boot loader. | |
boot.loader.grub.enable = true; | |
boot.loader.grub.version = 2; | |
# Define on which hard drive you want to install Grub. | |
boot.loader.grub.device = "/dev/sda"; | |
networking.hostName = "nixos"; # Define your hostname. | |
networking.hostId = "c28a40fb"; | |
# 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 | |
vim | |
emacs | |
git | |
haskellPackages.Agda | |
AgdaStdlib | |
xlibs.xmessage | |
haskellPackages.ghc | |
haskellPackages.xmobar | |
haskellPackages.xmonad | |
haskellPackages.xmonadContrib | |
haskellPackages.xmonadExtras | |
]; | |
# List services that you want to enable: | |
# Enable the OpenSSH daemon. | |
services.openssh.enable = true; | |
# Enable CUPS to print documents. | |
# services.printing.enable = true; | |
services.xserver = { | |
# Enable the X11 windowing system. | |
enable = true; | |
layout = "us"; | |
xkbOptions = "eurosign:e"; | |
# Enable XMonad | |
windowManager.default = "xmonad"; | |
windowManager.xmonad = { | |
enable = true; | |
enableContribAndExtras = true; | |
}; | |
# Automatically log in | |
displayManager.auto = { | |
enable = true; | |
user = "qolen"; | |
}; | |
}; | |
# Define user account 'qolen' | |
users.extraUsers.qolen = { | |
isNormalUser = true; | |
isSystemUser = true; | |
extraGroups = ["wheel"]; | |
password = ""; | |
}; | |
# Mount shared folder with host computer | |
fileSystems."/home/qolen/drop" = { | |
fsType = "vboxsf"; | |
device = "vm_drop"; | |
options = "rw,uid=499,gid=100"; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment