-
-
Save anonymous/7875c08be136afb8e7008564fd158dd9 to your computer and use it in GitHub Desktop.
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
# 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 systemd-boot EFI boot loader. | |
boot.loader.systemd-boot.enable = true; | |
boot.loader.efi.canTouchEfiVariables = true; | |
networking.hostName = "nixos"; # Define your hostname. | |
# Select internationalisation properties. | |
i18n = { | |
consoleKeyMap = "us"; | |
defaultLocale = "en_US.UTF-8"; | |
}; | |
# Set your time zone. | |
time.timeZone = "US/Central"; | |
# List packages installed in system profile. To search by name, run: | |
# $ nix-env -qaP | grep wget | |
environment.systemPackages = with pkgs; [ | |
zsh terminator hicolor_icon_theme dmenu ]; | |
# Sandbox | |
nix.useSandbox = true; | |
nix.sandboxPaths = [ "/dev" "/proc" ]; | |
system = { | |
autoUpgrade = { | |
channel = "https://nixos.org/channels/nixos-unstable"; | |
enable = true; | |
};}; | |
# Enable the X11 windowing system. | |
services.xserver = { | |
desktopManager.xterm.enable = false; | |
enable = true; | |
layout = "us"; | |
windowManager = { | |
i3 = { enable = true; }; | |
awesome = { enable = true; }; | |
}; | |
videoDrivers = [ "ati" ]; | |
displayManager = {lightdm.enable = true; sddm.autoNumlock = true;}; | |
}; | |
# Define a user account. Don't forget to set a password with ‘passwd’. | |
users.extraUsers = { | |
ndowens = { | |
isNormalUser = true; | |
extraGroups = [ "wheel" "audio" ]; | |
uid = 1000; | |
}; | |
}; | |
# Fonts | |
fonts = { | |
enableFontDir = true; | |
enableGhostscriptFonts = true; | |
fonts = with pkgs; [ | |
hack-font ]; | |
fontconfig = { | |
ultimate.enable = true; | |
defaultFonts.monospace = [ "Liberation Mono" ]; | |
defaultFonts.sansSerif = [ "Liberation Sans" ]; | |
defaultFonts.serif = [ "Liberation Serif" ]; | |
}; | |
}; | |
# Power management | |
services.acpid.enable = true; | |
# Enable updatedb | |
services.locate = { | |
enable = true; | |
interval = "hourly"; | |
}; | |
## Default Editor | |
services.emacs.defaultEditor = true; | |
## Set Default shell | |
users.defaultUserShell = pkgs.zsh; | |
# The NixOS release to be compatible with for stateful data such as databases. | |
# system.stateVersion = "16.09"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment