Skip to content

Instantly share code, notes, and snippets.

@chnn
Created March 30, 2019 16:21
Show Gist options
  • Select an option

  • Save chnn/7bfbdccea612fc5844d1ce7888d86d75 to your computer and use it in GitHub Desktop.

Select an option

Save chnn/7bfbdccea612fc5844d1ce7888d86d75 to your computer and use it in GitHub Desktop.
{ config, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.extraModulePackages = [config.boot.kernelPackages.wireguard];
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = ["quiet mem_sleep_default=deep"];
boot.initrd.luks.devices = [
{
name = "root";
device = "/dev/nvme0n1p2";
preLVM = true;
}
];
networking.hostName = "oc2lu";
networking.wireless.enable = true;
time.timeZone = "America/Los_Angeles";
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
wget
vim
curl
git
rxvt_unicode
ripgrep
fzf
mimeo
neovim
neovim-remote
python36Packages.neovim
firefox
chromium
autojump
alacritty
powertop
wireguard
wireguard-tools
htop
xorg.xbacklight
];
users.users.chris = {
home = "/home/chris";
createHome = true;
description = "Christopher Henn";
group = "users";
extraGroups = ["wheel" "video" "audio" "disk" "networkmanager"];
isNormalUser = true;
shell = pkgs.zsh;
uid = 1000;
};
programs.zsh.enable = true;
fonts.fonts = with pkgs; [
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
dejavu_fonts
iosevka
liberation_ttf
];
services.xserver.enable = true;
services.xserver.layout = "us";
services.xserver.windowManager.i3.enable = true;
services.xserver.autorun = true;
services.xserver.xkbOptions = "ctrl:nocaps";
services.xserver.libinput.enable = true;
services.xserver.libinput.naturalScrolling = true;
services.xserver.libinput.tapping = false;
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable sound.
# sound.enable = true;
# hardware.pulseaudio.enable = true;
# Danger!
system.stateVersion = "18.09"; # Did you read the comment?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment