Skip to content

Instantly share code, notes, and snippets.

@usami
Created June 27, 2017 09:28
Show Gist options
  • Save usami/bfa70ba897286d2dd0f720bcdeaab679 to your computer and use it in GitHub Desktop.
Save usami/bfa70ba897286d2dd0f720bcdeaab679 to your computer and use it in GitHub Desktop.
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda";
boot.kernelModules = [ "tp_smapi" ];
boot.extraModulePackages = [ config.boot.kernelPackages.tp_smapi ];
networking.hostName = "nixos";
networking.wireless.enable = true;
hardware.bluetooth.enable = true;
fonts = {
enableFontDir = true;
enableGhostscriptFonts = true;
fontconfig.defaultFonts.monospace = ["DejaVu Sans Mono"];
fonts = with pkgs; [
dejavu_fonts
];
};
i18n = {
consoleKeyMap = "us";
defaultLocale = "en_US.UTF-8";
};
time.timeZone = "Japan";
nixpkgs.config = {
allowUnfree = true;
};
environment.systemPackages = with pkgs; [
wget
termite
nix-repl
htop
i3status
dmenu
vim
chromium
keepassx
i3lock
i3blocks
unzip
lxappearnace
rofi
compton
clang
nox
dropbox
nitrogen
neovim
fish
gitAndTools.gitFull
perl
screenfetch
xcalib
usbutils
];
services.xserver = {
enable = true;
layout = "us";
xkbOptions = "ctrl:nocaps";
windowManager = {
default = "i3";
i3.enable = true;
};
synaptics = {
enable = true;
twoFingerScroll = true;
tapButtons = false;
};
};
users.extraUsers.yu = {
isNormalUser = true;
shell = "/run/current-system/sw/bin/fish";
description = "Yu Usami";
extraGroups = [ "wheel" ];
};
system.stateVersion = "16.09";
swapDevices = [
{ device = "/dev/disk/by-label/swap"; }
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment