Skip to content

Instantly share code, notes, and snippets.

@throwup
Created January 30, 2018 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save throwup/a74be9e1b11e7536f70f9fab60502dd1 to your computer and use it in GitHub Desktop.
Save throwup/a74be9e1b11e7536f70f9fab60502dd1 to your computer and use it in GitHub Desktop.
configuration.nix
# 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
"${builtins.fetchTarball https://github.com/rycee/home-manager/archive/nixos-module-user-pkgs.tar.gz}/nixos"
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos"; # Define your hostname.
networking.networkmanager.enable = true;
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Select internationalisation properties.
i18n = {
consoleFont = "Lat2-Terminus16";
consoleKeyMap = "de";
defaultLocale = "en_US.UTF-8";
};
# Set your time zone.
time.timeZone = "Europe/Vienna";
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [
# Terminal Apps
vim
htop
figlet
cowsay
lolcat
cmatrix
pulsemixer
cava
cli-visualizer
ncmpcpp
weechat
canto-curses
pamix
ranger
# Graphical Apps
xterm
rxvt_unicode
urxvt_perls
firefox
vscode
steam
feh
# Utilities
wget
git
xclip
nixUnstable
dmenu
ncdu
w3m
# Other
herbstluftwm
zsh
oh-my-zsh
polybar
mpd
mpc_cli
];
environment.variables = {
TERMINAL = [ "urxvt" ];
OH_MY_ZSH = [ "${pkgs.oh-my-zsh}/share/oh-my-zsh" ];
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
programs.zsh.enable = true;
programs.bash.enableCompletion = true;
# programs.mtr.enable = true;
# programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.layout = "de";
services.xserver.xkbOptions = "eurosign:e";
# Enable PulseAudio
hardware.pulseaudio.enable = true;
# Enable touchpad support.
services.xserver.libinput.enable = true;
# Enable the DE/WM + DM
services.xserver.displayManager.sddm.enable = true;
services.xserver.windowManager.herbstluftwm.enable = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
users.extraUsers.leo = {
isNormalUser = true;
uid = 1000;
extraGroups = [ "wheel" "networkmanager" "audio" "video" ];
shell = pkgs.zsh;
};
home-manager.users.leo = {
home.packages = [ pkgs.hello ];
};
# 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?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment