Skip to content

Instantly share code, notes, and snippets.

@ublubu
Created July 4, 2015 22:30
Show Gist options
  • Save ublubu/ef3f10f276b54711f6a5 to your computer and use it in GitHub Desktop.
Save ublubu/ef3f10f276b54711f6a5 to your computer and use it in GitHub Desktop.
nixos config
# 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, ... }:
{
nixpkgs.config.allowUnfree = true;
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
boot.initrd.kernelModules = [
"fbcon"
];
# Use the gummiboot efi boot loader.
boot.loader.gummiboot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos"; # Define your hostname.
networking.hostId = "7e31a6a5";
# networking.wireless.enable = true; # Enables wireless.
# Select internationalisation properties.
i18n = {
consoleFont = "lat9w-16";
consoleKeyMap = "us";
defaultLocale = "en_US.UTF-8";
};
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [
vim
wget
];
environment.sessionVariables = {
};
time.timeZone = "America/Los_Angeles";
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.layout = "us";
# services.xserver.xkbOptions = "eurosign:e";
# Enable the KDE Desktop Environment.
services.xserver.displayManager.kdm.enable = true;
services.xserver.desktopManager.kde4.enable = true;
# NVIDIA graphics drivers
services.xserver.videoDrivers = [ "nvidia" ]; # I also tried nvidiaLegacy340 with the same result.
# hardware.opengl.driSupport32Bit = true; # I tried this on/off without effect.
# Define a user account. Don't forget to set a password with ‘passwd’.
users.extraUsers.kynan = {
name = "kynan";
group = "users";
extraGroups = [ "wheel" ];
isNormalUser = true;
uid = 1000;
createHome = true;
home = "/home/kynan";
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment