Skip to content

Instantly share code, notes, and snippets.

@wavejumper
Created July 4, 2016 06:38
Show Gist options
  • Save wavejumper/8fe3117c4c809234f6abf4950e607390 to your computer and use it in GitHub Desktop.
Save wavejumper/8fe3117c4c809234f6abf4950e607390 to your computer and use it in GitHub Desktop.
{ 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;
boot.loader.grub.device = "/dev/sdc";
networking.hostName = "thomascrowley";
# System settings
system.autoUpgrade.enable = true;
# Docker
virtualisation.docker.enable = true;
i18n = {
consoleFont = "Lat2-Terminus16";
consoleKeyMap = "us";
defaultLocale = "en_US.UTF-8";
};
# Set your time zone.
time.timeZone = "Australia/Melbourne";
# List packages installed in system profile. To search by name, run:
nixpkgs.config.allowUnfree = true;
environment = {
systemPackages = with pkgs; [
curl
wget
zsh
neovim
leiningen
git
nodejs
openjdk
maven
htop
tmux
i3status
i3lock
skype
xclip
dmenu
gtk
feh
scrot
shared_mime_info
zathura
rxvt_unicode
libreoffice
ranger
google-cloud-sdk
unzip
gnupg
];
};
# Fonts
fonts = {
enableFontDir = true;
enableGhostscriptFonts = true;
fonts = with pkgs; [
corefonts # Micrsoft free fonts
inconsolata # monospaced
ubuntu_font_family # Ubuntu fonts
unifont # some international languages
font-awesome-ttf
google-fonts
];
};
# Users
users.defaultUserShell = "/run/current-system/sw/bin/zsh";
users.extraUsers.thomascrowley = {
isNormalUser = true;
home = "/home/thomascrowley";
description = "Thomas Crowley";
extraGroups = ["wheel" "audio" "networkmanager" "docker"];
};
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Redshift
services.redshift.enable = true;
services.redshift.latitude = "33.9";
services.redshift.longitude = "-118.4";
# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.layout = "us";
services.xserver.xkbOptions = "caps:escape";
services.xserver.windowManager.i3.enable = true;
services.xserver.videoDrivers = ["nvidia"];
hardware.opengl.driSupport32Bit = true;
hardware.pulseaudio.enable = true;
# The NixOS release to be compatible with for stateful data such as databases.
system.stateVersion = "16.03";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment