Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { config, pkgs, ... }:
- {
- ########
- # boot #
- ########
- imports =
- [ ./hardware-configuration.nix
- ];
- boot.kernelPackages = pkgs.linuxPackages_4_4;
- boot.kernelModules =
- [ "module-bluetooth-discover"
- ];
- boot.initrd.luks.devices = [{ name = "lvm"; device = "/dev/sda2"; preLVM = true; }];
- boot.loader.generic-extlinux-compatible = {
- configurationLimit = 5;
- };
- boot.loader.systemd-boot = {
- enable = true;
- };
- boot.loader.efi.canTouchEfiVariables = true;
- system.stateVersion = "15.09";
- ############
- # hardware #
- ############
- hardware.pulseaudio = {
- enable = true;
- support32Bit = true;
- };
- hardware.opengl = {
- driSupport32Bit = true;
- driSupport = true;
- };
- # hardware.bluetooth.enable = true;
- ###########
- # network #
- ###########
- networking.hostName = "laplace";
- networking.networkmanager.enable = true;
- networking.dhcpcd.extraConfig =
- '' static domain_name_servers=8.8.8.8 8.8.4.4
- '';
- networking.extraHosts =
- ''
- '';
- networking.firewall.allowedTCPPorts = [ 8000 ];
- ##########
- # locale #
- ##########
- time.timeZone = "America/New_York";
- i18n = {
- consoleFont = "lat9w-16";
- consoleKeyMap = "dvorak";
- defaultLocale = "en_US.UTF-8";
- };
- fonts = {
- fontconfig.enable = true;
- enableFontDir = true;
- fonts = with pkgs; [
- corefonts # Micrsoft free fonts
- inconsolata # monospaced
- ubuntu_font_family # Ubuntu fonts
- ttf_bitstream_vera
- xlibs.fontbitstream100dpi
- xlibs.fontbitstream75dpi
- xlibs.fontbitstreamtype1
- vistafonts
- unifont
- terminus_font
- freefont_ttf
- liberation_ttf
- proggyfonts
- cantarell_fonts
- dejavu_fonts
- dina-font
- dosemu_fonts
- source-code-pro
- ];
- };
- ###########
- # nixpkgs #
- ###########
- nix = {
- nixPath = [ "/home/nixos" "nixos-config=/home/nixos/configuration.nix" ];
- # Normally this is full of keys for work's build servers
- binaryCachePublicKeys =
- [
- ];
- binaryCaches =
- [
- "https://cache.nixos.org/"
- ];
- };
- nixpkgs.config = {
- allowUnfree = true;
- chromium = {
- enablePepperFlash = true;
- enablePepperPDF = true;
- enableWideVine = true;
- };
- firefox = {
- jre = false;
- enableGoogleTalkPlugin = true;
- enableAdobeFlash = false;
- };
- packageOverrides = pkgs: {
- };
- };
- ############
- # software #
- ############
- environment.systemPackages = with pkgs;
- [ wget
- dmenu
- gitAndTools.gitFull
- haskellPackages.xmonad
- chromium
- firefoxWrapper
- terminator
- postgresql
- zsh
- pavucontrol
- taffybar
- parcellite
- dunst
- libnotify
- networkmanagerapplet
- lxappearance
- numix-gtk-theme
- lightdm
- bluez
- ];
- services.acpid.enable = true;
- powerManagement.enable = true;
- services.openssh.enable = true;
- services.xserver = {
- enable = true;
- layout = "us";
- xkbVariant = "dvorak";
- xkbOptions = "ctrl:nocaps";
- videoDrivers = [ "intel" ];
- synaptics = {
- enable = true;
- accelFactor = "0.05";
- horizontalScroll = true;
- maxSpeed = "1.5";
- minSpeed = "1.0";
- palmDetect = true;
- tapButtons = true;
- twoFingerScroll = true;
- vertEdgeScroll = false;
- additionalOptions =
- '' Option "TapButton1" "1"
- Option "TapButton2" "3"
- Option "ClickFinger1" "1"
- Option "ClickFinger2" "3"
- Option "TapAndDragGesture" "0"
- Option "ClickTime" "0"
- Option "MaxTapTime" "90"
- Option "MaxTapMove" "100"
- Option "SingleTapTimeout" "0"
- Option "PalmMinWidth" "5"
- Option "PalmMinZ" "0"
- Option "TapButton2" "3"
- Option "TapButton3" "2"
- '';
- };
- displayManager.lightdm.enable = true;
- windowManager.xmonad = {
- enable = true;
- haskellPackages = pkgs.haskellPackages;
- enableContribAndExtras = true;
- extraPackages = haskellPackages:
- [ haskellPackages.xmonad-contrib
- haskellPackages.taffybar
- ];
- };
- };
- services.postgresql = {
- enable = true;
- enableTCPIP = true;
- dataDir = "/var/db/postgresql";
- initialScript = "/etc/nixos/postgres.sql";
- package = pkgs.postgresql94;
- port = 5432;
- extraConfig =
- '' max_pred_locks_per_transaction = 8192
- max_wal_senders = 2
- wal_level = hot_standby
- wal_keep_segments = 8
- '';
- authentication = pkgs.lib.mkForce
- '' local all all ident
- host all all 127.0.0.1/32 md5
- host all all ::1/128 md5
- '';
- };
- services.printing.enable = true;
- services.printing.drivers = [ pkgs.hplipWithPlugin ];
- services.upower.enable = true;
- #########
- # users #
- #########
- users.extraUsers = {
- danharaj = {
- name = "danharaj";
- extraGroups = [ "wheel" "networkmanager" "fuse" "nixmanager" ];
- createHome = true;
- home = "/home/danharaj";
- shell = "/run/current-system/sw/bin/zsh";
- };
- work = {
- name = "work";
- extraGroups = [ "wheel" "networkmanager" "nixmanager" ];
- createHome = true;
- home = "/home/work"; #lul
- shell = "/run/current-system/sw/bin/zsh";
- };
- };
- users.extraGroups = {
- nixmanager = {};
- };
- users.extraGroups.vboxusers.members =
- [ "danharaj"
- "work"
- ];
- }
Advertisement
Add Comment
Please, Sign In to add comment