Created
April 5, 2016 19:34
-
-
Save ygreenc/dbf89ff27836158ec2ef8927bbec83a6 to your computer and use it in GitHub Desktop.
Nixos configuration
This file contains 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
{ 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 = "<hostname>"; # Define your hostname. | |
# Select internationalisation properties. | |
i18n = { | |
consoleFont = "Lat2-Terminus16"; | |
consoleKeyMap = "us"; | |
defaultLocale = "en_US.UTF-8"; | |
}; | |
# Set your time zone. | |
time.timeZone = "America/Montreal"; | |
# List packages installed in system profile. To search by name, run: | |
# $ nix-env -qaP | grep wget | |
environment.systemPackages = with pkgs; [ | |
wget | |
vim | |
git | |
htop | |
python3 | |
rofi | |
chromium | |
powerline-fonts | |
]; | |
# Enable the OpenSSH daemon. | |
services.openssh.enable = true; | |
# Enable the X11 windowing system. | |
services.xserver.enable = true; | |
services.xserver.layout = "us"; | |
# Enable zsh | |
programs.zsh.enable = true; | |
users.defaultUserShell = "/run/current-system/sw/bin/zsh"; | |
# Enable i3 window manager | |
services.xserver.windowManager.i3.enable = true; | |
# Define a user account. Don't forget to set a password with ‘passwd’. | |
users.extraUsers.ygreenc = { | |
isNormalUser = true; | |
uid = 1000; | |
extraGroups = [ "wheel" ]; | |
}; | |
# 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