Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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, lib, ... }:
- with lib;
- {
- imports =
- [ # Include the results of the hardware scan.
- ./hardware-configuration.nix
- ];
- hardware = {
- bumblebee = true;
- opengl.driSupport32Bit = true;
- opengl.enable=true;
- };
- networking = {
- hostName = "machine";
- wireless.enable = false;
- networkmanager.enable = true;
- firewall = {
- enable = true;
- allowPing = false;
- };
- };
- # Internationalisation properties.
- i18n = {
- consoleFont = "Lat2-Terminus16";
- consoleKeyMap = "us";
- defaultLocale = "en_US.UTF-8";
- };
- fonts = {
- enableCoreFonts = true;
- enableFontDir = true;
- enableGhostscriptFonts = true;
- fonts = with pkgs; [
- inconsolata # monospaced
- ubuntu_font_family
- powerline-fonts
- font-awesome-ttf
- source-code-pro
- unifont # some international languages
- ];
- fontconfig = {
- dpi = 96;
- };
- };
- # Set your time zone.
- time.timeZone = "Europe/Kiev";
- nixpkgs.config = {
- # Allow unfree packages
- allowUnfree = true;
- };
- environment.systemPackages = with pkgs; [
- git
- docker
- nodejs
- feh
- screenfetch
- mpv
- ranger
- transmission
- compton-git
- dmenu
- rofi
- termite
- ag
- atool
- numix-gtk-theme
- wget
- neovim
- kakoune
- termite
- tmux
- vscode
- copyq
- google-chrome
- oh-my-zsh
- xclip
- file
- gksu
- git
- hdf5
- zip
- unzip
- htop
- nix-repl
- zsh-autosuggestions
- # Mouse hiding
- # unclutter
- # Encryption key management
- gnupg
- # Make NTFS filesystems (e.g., USB drives)
- ntfs3g
- # Encrypted USB sticks etc
- cryptsetup
- # GUI for sound control
- pavucontrol
- ];
- services = {
- # Enable the OpenSSH daemon.
- openssh.enable = true;
- xserver = {
- enable = true;
- layout = "us";
- videoDrivers = [ "nvidia" ];
- windowManager = {
- xmonad.enable = true;
- xmonad.enableContribAndExtras = true;
- };
- desktopManager = {
- default = "";
- xterm.enable = false;
- };
- displayManager = {
- auto = {
- enable = true;
- user = "bjorn";
- };
- };
- synaptics = {
- enable = true;
- twoFingerScroll = true;
- };
- };
- };
- users = {
- mutableUsers = false;
- defaultUserShell = "${pkgs.zsh}/bin/zsh";
- extraUsers = {
- bjorn = {
- isNormalUser = true;
- extraGroups = [ "audio" "disk" "wheel" "networkmanager" ];
- hashedPassword = "$6$Xne/w.j0RkrN$lRcThoZiNea2YBhfbeVJ2dgylt6Ov0IZbh1bf3flR6DYNpnv8YTTPJGwhk/8XPGNkgIrlKtXfvBowCZ7nbVt6/";
- };
- };
- };
- swapDevices = singleton
- { device = "/dev/disk/by-label/swap"; };
- programs = {
- bash.enableCompletion = true;
- zsh.enable = true;
- };
- security = {
- sudo = {
- enable = true;
- wheelNeedsPassword = false; # You Only Live Once
- };
- };
- # This value determines the NixOS release with which your system is to be
- # compatible, in order to avoid breaking some software such as database
- # servers. You should change this only after NixOS release notes say you
- # should.
- system.stateVersion = "17.09"; # Did you read the comment?
- }
Add Comment
Please, Sign In to add comment