Skip to content

Instantly share code, notes, and snippets.

@kristianlm
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kristianlm/146f53cf89139b49034c to your computer and use it in GitHub Desktop.
Save kristianlm/146f53cf89139b49034c to your computer and use it in GitHub Desktop.
configuration.nix
# 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 = [ ./hardware-configuration.nix ];
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda";
networking.hostName = "kee";
networking.hostId = "46d2c9ec";
networking.wireless.enable = true;
i18n = {
consoleFont = "lat9w-16";
consoleKeyMap = "emacs";
defaultLocale = "en_US.UTF-8";
};
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [
wget
emacs
inconsolata
redshift
i3status
i3lock
dmenu
chromium
git
pv
file
bc
];
services = {
avahi = { enable = true; nssmdns = true; };
locate.enable = true;
redshift = {
enable = true;
latitude = "60.391263060";
longitude = "5.32205405";
};
xserver = {
enable = true;
layout = "us";
xkbOptions = "ctrl:nocaps";
xkbVariant = "mac";
windowManager.i3.enable = true;
windowManager.default = "i3";
displayManager.sessionCommands = '' i3status & '';
desktopManager.xterm.enable = false;
};
};
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Enable CUPS to print documents.
# services.printing.enable = true;
security.sudo.wheelNeedsPassword = false;
users.extraUsers.klm = {
isNormalUser = true;
uid = 1000;
name = "klm";
extraGroups = ["users" "wheel"];
home = "/home/klm";
useDefaultShell = true;
};
# semi-hardware
powerManagement.cpuFreqGovernor = "ondemand";
powerManagement.enable = true;
# hardware specifig for my eee pc! how do i autodetect this?
services.xserver.synaptics.enable = true;
services.xserver.synaptics.twoFingerScroll = true;
}
! Use a nice truetype font and size by default...
! xterm ----------------------------------------------------------------------
xterm*VT100.geometry: 80x25
xterm*faceName: Inconsolata:style=Regular:size=8
!xterm*font: -*-dina-medium-r-*-*-16-*-*-*-*-*-*-*
xterm*dynamicColors: true
xterm*utf8: 2
xterm*eightBitInput: true
xterm*saveLines: 65568
xterm*scrollKey: true
xterm*scrollTtyOutput: false
XTerm*vt100.background: #303030
XTerm*vt100.foreground: #ffffff
XTerm*metaSendsEscape: true
! Every shell is a login shell by default (for inclusion of all necessary environment variables)
xterm*loginshell: true
! double-click to select whole URLs :D
xterm*charClass: 33:48,36-47:48,58-59:48,61:48,63-64:48,95:48,126:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment