Skip to content

Instantly share code, notes, and snippets.

@camshaft
Last active April 21, 2016 02:23
Show Gist options
  • Save camshaft/0602fe8b09acd620581710c9b0dd1046 to your computer and use it in GitHub Desktop.
Save camshaft/0602fe8b09acd620581710c9b0dd1046 to your computer and use it in GitHub Desktop.
nixos configuration
# 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 gummiboot efi boot loader.
boot.loader.grub.enable = false;
boot.loader.gummiboot.enable = true;
boot.loader.gummiboot.timeout = 2;
boot.loader.efi.canTouchEfiVariables = true;
boot.cleanTmpDir = true;
boot.extraModprobeConfig = ''
options libdata.force=noncq
options resume=/dev/sda5
options snd_hda_intel index=0 model=intel-mac-auto id=PCH
options snd_hda_intel index=1 model=intel-mac-auth id=HDMI
options snd_hda_intel model=mbp101
options hid_apple fnmode=2
'';
boot.loader.generationsDir.enable = false;
boot.loader.generationsDir.copyKernels = false;
fonts.enableFontDir = true;
fonts.enableCoreFonts = true;
fonts.enableGhostscriptFonts = true;
fonts.fonts = with pkgs; [
corefonts
inconsolata
liberation_ttf
dejavu_fonts
bakoma_ttf
gentium
ubuntu_font_family
terminus_font
];
hardware.bluetooth.enable = true;
nix = {
useChroot = true;
trustedBinaryCaches = [ http://hydra.nixos.org ];
binaryCaches = [
http://cache.nixos.org
];
};
networking.hostName = "camshaft"; # Define your hostname.
networking.firewall.enable = true;
#networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.networkmanager.enable = true;
nixpkgs.config.allowUnfree = true;
powerManagement.enable = true;
programs.zsh.enable = true;
programs.zsh.enableCompletion = true;
services.locate.enable = true;
services.mpd.enable = true;
services.upower.enable = true;
services.xserver = {
enable = true;
displayManager.sddm.enable = true;
desktopManager.kde5.enable = true;
autorun = true;
videoDrivers = [ "amd-non-free" ];
multitouch = {
enable = true;
ignorePalm = true;
tapButtons = false;
invertScroll = true;
};
synaptics = {
enable = true;
palmDetect = true;
scrollDelta = 100;
tapButtons = false;
twoFingerScroll = true;
additionalOptions = ''
Option "Thumbsize" "50"
'';
};
xkbVariant = "mac";
};
# Set your time zone.
time.timeZone = "America/Denver";
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [
acpi
asdf
chromium
coreutils
curl
dropbox
emacs
firefoxWrapper
fop
gitAndTools.gitFull
gnupg
kde5.ark
kde5.okular
openssl
pass
powertop
psmisc
qtpass
slack
spotify
sublime3
thunderbird
tmux
unixODBC
unzip
vlc
which
wget
zsh
lightum
];
users.mutableUsers = true;
users.defaultUserShell = "/run/current-system/sw/bin/zsh";
users.extraUsers.cameron = {
isNormalUser = true;
uid = 1000;
group = "users";
description = "Cameron Bytheway";
extraGroups = [ "wheel" ];
createHome = true;
home = "/home/cameron";
};
sound.enableMediaKeys = 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