Skip to content

Instantly share code, notes, and snippets.

@bencoman
Created November 2, 2017 00:37
Show Gist options
  • Save bencoman/9c94d57766dab4cb1fb6cce0206f0f8c to your computer and use it in GitHub Desktop.
Save bencoman/9c94d57766dab4cb1fb6cce0206f0f8c to your computer and use it in GitHub Desktop.
# 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
];
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
# boot.loader.grub.efiSupport = true;
# boot.loader.grub.efiInstallAsRemovable = true;
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
# Define on which hard drive you want to install Grub.
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
networking.hostName = "benixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.networkmanager.enable=true;
# Select internationalisation properties.
# i18n = {
# consoleFont = "Lat2-Terminus16";
# consoleKeyMap = "us";
# defaultLocale = "en_US.UTF-8";
# };
# Set your time zone.
time.timeZone = "Australia/Perth";
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [
wget
curl
vim
networkmanager
networkmanagerapplet
xclip
iotop
glxinfo
pciutils
nix-prefetch-git
sic
konversation
ii
hexchat
epic5
communi
chatzilla
chromium
firefox
epdfview
mupdf
qpdfview
xpdf
vlc
lsb-release
stdenv
git
clang
python
#patchelf
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# 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 KDE Desktop Environment.
services.xserver = {
enable = true;
layout = "us";
displayManager.sddm.enable = true;
desktopManager.plasma5.enable = true;
};
# Enable XMonad desktop environment
#services.xserver = {
# enable = true;
# layout = "gb";
# xkbOptions = "ctrl:nocaps";
# windowManager.xmonad.enable = true;
# windowManager.default = "xmonad";
# windowManager.xmonad.enableContribAndExtras = true;
#};
# Enable lightDM+i3 desktop environment
# services.xserver = {
# enable = true;
# layout = "us";
# videoDrivers = ["intel"];
#
# desktopManager.default = "none";
# desktopManager.xterm.enable = false;
# displayManager = {
# lightdm.enable =true;
# };
# windowManager.default = "i3";
# windowManager.i3.enable = true;
# };
# Enable touchpad support.
# services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
# users.extraUsers.guest = {
# isNormalUser = true;
# uid = 1000;
# };
users.extraUsers.ben = {
name = "Ben";
group = "users";
extraGroups = ["wheel" "disk" "audio" "video" "networkmanager" "systemd-journal" ];
createHome = true;
home = "/home/ben";
shell = "/run/current-system/sw/bin/bash";
isNormalUser = true;
uid = 1000;
};
# 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?
}
@bencoman
Copy link
Author

bencoman commented Nov 2, 2017

NixOS configuration prior to reinstall.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment