2016-06-19 02:45:00 +00:00
|
|
|
|
# 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 = {
|
|
|
|
|
gc = {
|
|
|
|
|
automatic = true;
|
|
|
|
|
dates = "12:00";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
|
initrd = {
|
|
|
|
|
availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
|
|
|
|
kernelModules = [ "fbcon" "wl" "kvm-intel" ];
|
|
|
|
|
luks.devices = [{
|
|
|
|
|
name = "rootfs";
|
|
|
|
|
device = "/dev/sda2";
|
|
|
|
|
preLVM = true;
|
|
|
|
|
}];
|
|
|
|
|
};
|
|
|
|
|
loader = {
|
|
|
|
|
gummiboot.enable = true;
|
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
|
};
|
|
|
|
|
extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
|
|
|
|
|
extraModprobeConfig = ''
|
|
|
|
|
options hid_apple iso_layout=0
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
networking = {
|
2017-02-11 19:05:08 +00:00
|
|
|
|
hostName = "Caroyln_MacBookAir_NixOS";
|
2016-06-19 02:45:00 +00:00
|
|
|
|
firewall.enable = true;
|
2017-02-11 19:05:08 +00:00
|
|
|
|
interfaceMonitor.enable = false;
|
|
|
|
|
wireless.enable = false; # Don't run wpa_supplicant (wicd will do it when necessary)
|
|
|
|
|
useDHCP = false; # Don't run dhclient on wlan0
|
|
|
|
|
wicd.enable = true;
|
2016-06-19 02:45:00 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
powerManagement.enable = true;
|
|
|
|
|
|
2016-09-18 03:24:23 +00:00
|
|
|
|
virtualisation = {
|
|
|
|
|
docker.enable = true;
|
|
|
|
|
};
|
2016-06-19 02:45:00 +00:00
|
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
|
time.timeZone = "America/Los_Angeles";
|
|
|
|
|
|
|
|
|
|
# List packages installed in system profile. To search by name, run:
|
|
|
|
|
# $ nix-env -qaP | grep wget
|
|
|
|
|
|
|
|
|
|
programs.zsh.enable = true;
|
|
|
|
|
|
2016-09-18 03:24:23 +00:00
|
|
|
|
security.setuidPrograms = [ "slock" ];
|
|
|
|
|
|
2016-06-19 02:45:00 +00:00
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
dropbox-cli
|
2017-02-11 19:05:08 +00:00
|
|
|
|
neovim
|
|
|
|
|
bspwm
|
|
|
|
|
sxhkd
|
|
|
|
|
bar
|
2016-06-19 02:45:00 +00:00
|
|
|
|
feh
|
2016-09-18 03:24:23 +00:00
|
|
|
|
gcc
|
2016-06-19 02:45:00 +00:00
|
|
|
|
ghc
|
|
|
|
|
git
|
2016-09-18 03:24:23 +00:00
|
|
|
|
gnumake
|
|
|
|
|
chromium
|
|
|
|
|
haskellPackages.cabal-install
|
2016-06-24 20:01:18 +00:00
|
|
|
|
haskellPackages.ghc-mod
|
|
|
|
|
haskellPackages.hlint
|
2016-09-18 03:24:23 +00:00
|
|
|
|
haskellPackages.stack
|
2016-06-24 20:01:18 +00:00
|
|
|
|
haskellPackages.stylish-haskell
|
2016-06-19 02:45:00 +00:00
|
|
|
|
htop
|
2016-09-18 03:24:23 +00:00
|
|
|
|
kbdlight
|
2016-06-19 02:45:00 +00:00
|
|
|
|
networkmanagerapplet
|
2016-06-24 20:01:18 +00:00
|
|
|
|
python
|
|
|
|
|
python27Packages.udiskie
|
2016-06-19 02:45:00 +00:00
|
|
|
|
silver-searcher
|
2016-09-18 03:24:23 +00:00
|
|
|
|
slock
|
2017-02-11 19:05:08 +00:00
|
|
|
|
st
|
2016-06-19 02:45:00 +00:00
|
|
|
|
sudo
|
|
|
|
|
unzip
|
|
|
|
|
wget
|
2016-09-18 03:24:23 +00:00
|
|
|
|
xautolock
|
2016-06-19 02:45:00 +00:00
|
|
|
|
xflux
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# List services that you want to enable:
|
|
|
|
|
services = {
|
2016-06-24 20:01:18 +00:00
|
|
|
|
nixosManual.showManual = true;
|
2016-06-19 02:45:00 +00:00
|
|
|
|
tlp.enable = true;
|
|
|
|
|
openssh.enable = true;
|
|
|
|
|
printing.enable = true;
|
|
|
|
|
xserver = {
|
|
|
|
|
enable = true;
|
|
|
|
|
layout = "us";
|
|
|
|
|
displayManager = {
|
|
|
|
|
lightdm = {
|
|
|
|
|
enable = true;
|
|
|
|
|
background = "/home/gigavinyl/Pictures/blook.png";
|
|
|
|
|
};
|
|
|
|
|
windowManager = {
|
2017-02-11 19:05:08 +00:00
|
|
|
|
bspwm = {
|
2016-06-19 02:45:00 +00:00
|
|
|
|
enable = true;
|
|
|
|
|
};
|
2017-02-11 19:05:08 +00:00
|
|
|
|
default = "bspwm";
|
2016-06-19 02:45:00 +00:00
|
|
|
|
};
|
|
|
|
|
synaptics = {
|
|
|
|
|
enable = true;
|
|
|
|
|
dev = "/dev/input/event*";
|
|
|
|
|
twoFingerScroll = true;
|
|
|
|
|
tapButtons = false;
|
|
|
|
|
accelFactor = "0.001";
|
|
|
|
|
buttonsMap = [ 1 3 2 ];
|
|
|
|
|
palmDetect = true;
|
|
|
|
|
additionalOptions = ''
|
|
|
|
|
Option "VertScrollDelta" "-180" # scroll sensitivity, the bigger the negative number = less sensitive
|
|
|
|
|
Option "HorizScrollDelta" "-180"
|
|
|
|
|
Option "FingerLow" "40"
|
|
|
|
|
Option "FingerHigh" "70"
|
|
|
|
|
Option "Resolution" "270" # Pointer sensitivity, this is for a retina screen, so you'll probably need to change this for an air
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
|
|
|
users.extraUsers.gigavinyl = {
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
home = "/home/gigavinyl";
|
|
|
|
|
shell = "/run/current-system/sw/bin/zsh";
|
|
|
|
|
extraGroups = [ "wheel" "networkmanager" "docker" ];
|
|
|
|
|
};
|
|
|
|
|
|
2016-06-24 20:01:18 +00:00
|
|
|
|
# Enable Udiskie Daemon
|
|
|
|
|
systemd.user.services."udiskie" = {
|
|
|
|
|
enable = true;
|
|
|
|
|
description = "udiskie to automount removable media";
|
2016-06-19 02:45:00 +00:00
|
|
|
|
wantedBy = [ "default.target" ];
|
2016-06-24 20:01:18 +00:00
|
|
|
|
path = with pkgs; [
|
|
|
|
|
# gnome3.defaultIconTheme
|
|
|
|
|
# gnome3.gnome_themes_standard
|
|
|
|
|
pythonPackages.udiskie
|
|
|
|
|
];
|
|
|
|
|
# environment.XDG_DATA_DIRS="${pkgs.gnome3.defaultIconTheme}/share:${pkgs.gnome3.gnome_themes_standard}/share";
|
|
|
|
|
serviceConfig.Restart = "always";
|
|
|
|
|
serviceConfig.RestartSec = 2;
|
|
|
|
|
serviceConfig.ExecStart = "${pkgs.python27Packages.udiskie}/bin/udiskie -a -t -n -F ";
|
2016-06-19 02:45:00 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Setup custom fonts
|
|
|
|
|
fonts = {
|
|
|
|
|
enableFontDir = true;
|
|
|
|
|
enableGhostscriptFonts = true;
|
|
|
|
|
fonts = with pkgs; [
|
|
|
|
|
corefonts
|
|
|
|
|
ubuntu_font_family
|
|
|
|
|
source-code-pro
|
|
|
|
|
powerline-fonts
|
2017-02-11 19:05:08 +00:00
|
|
|
|
gohufont
|
2016-06-19 02:45:00 +00:00
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# The NixOS release to be compatible with for stateful data such as databases.
|
2017-02-11 19:05:08 +00:00
|
|
|
|
system.stateVersion = "16.09";
|
2016-06-19 02:45:00 +00:00
|
|
|
|
|
|
|
|
|
}
|