Skip to content

Instantly share code, notes, and snippets.

@fooblahblah
Last active August 29, 2015 14:17
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 fooblahblah/707f20865d66a5e5878f to your computer and use it in GitHub Desktop.
Save fooblahblah/707f20865d66a5e5878f to your computer and use it in GitHub Desktop.
Nix profiles
{
allowUnfree = true;
packageOverrides = pkgs: rec {
# jre = pkgs.oraclejre8;
# jdk = pkgs.oraclejdk8;
sbt = pkgs.sbt.override {
jre = pkgs.oraclejre8;
};
};
}
# 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
];
nix.binaryCaches = [ http://cache.nixos.org http://hydra.nixos.org ];
# Use the gummiboot efi boot loader.
boot.cleanTmpDir = true;
boot.kernelPackages = pkgs.linuxPackages_3_18;
boot.kernelParams = [ "libata.force=noncq" ];
boot.loader.gummiboot.enable = true;
boot.loader.gummiboot.timeout = 5;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "somery"; # Define your hostname.
networking.networkmanager.enable = true;
time.timeZone = "America/Denver";
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [
ack
chromium
cmake
docker
emacs
gnutls
kde4.kdelibs
nix-repl
openvpn
openssl
oraclejdk8
sudo
terminator
wget
zsh
];
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
services.upower.enable = true;
services.printing.enable = true;
services.nixosManual.showManual = true;
services.logind.extraConfig = "HandleLidSwitch=ignore\nHandleSuspendKey=ignore\nHandleHibernateKey=ignore\nLidSwitchIgnoreInhibited=no";
services.virtualboxHost.enable = true;
# Enable the X11 windowing system.
services.xserver = {
enable = true;
layout = "us";
# displayManager.desktopManagerHandlesLidAndPower = true;
# Enable the KDE Desktop Environment.
displayManager.kdm.enable = true;
desktopManager.kde4.enable = true;
synaptics.enable = true;
synaptics.buttonsMap = [ 1 3 2];
synaptics.fingersMap = [ 0 0 0 ];
synaptics.tapButtons = true;
synaptics.twoFingerScroll = true;
synaptics.vertEdgeScroll = false;
};
services.mysql = {
enable = true;
package = pkgs.mysql55;
};
# Define a user account. Don't forget to set a password with ‘passwd’.
users.extraUsers.jsimpson = {
isNormalUser = true;
uid = 1000;
home = "/home/jsimpson";
createHome = true;
extraGroups = [ "wheel" "networkmanager" "docker" ];
shell = "/run/current-system/sw/bin/zsh";
};
nixpkgs.config = {
allowUnfree = true;
chromium.enablePepperFlash = true;
chromium.enablePepperPDF = true;
packageOverrides = pkgs: rec {
jre = pkgs.oraclejre8;
jdk = pkgs.oraclejdk8;
qt4 = pkgs.qt4.override {
mysql = null;
};
};
};
programs.zsh.enable = true;
security.sudo.wheelNeedsPassword = false;
}
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, ... }:
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
boot.initrd.availableKernelModules = [ "ohci_pci" "ehci_pci" "ahci" "firewire_ohci" "usb_storage" "usbhid" ];
boot.kernelModules = [ "kvm-intel" "wl" ];
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/39cdf59a-3a01-4d58-afa2-cb642d92c489";
fsType = "ext4";
options = "defaults,noatime,discard";
noCheck = true;
};
swapDevices = [ ];
nix.maxJobs = 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment