Last active
August 27, 2016 14:03
-
-
Save RamKromberg/a12c04bd24ba91e1faf4f7b1dd7b5faf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
]; | |
hardware.cpu.intel.updateMicrocode = true; | |
boot.loader.grub.enable = true; | |
boot.loader.grub.version = 2; | |
boot.loader.grub.device = "/dev/sda"; | |
nixpkgs.config = { | |
allowUnfree = true; | |
}; | |
# Select internationalisation properties. | |
i18n = { | |
consoleFont = "Lat2-Terminus16"; | |
consoleKeyMap = "us"; | |
defaultLocale = "en_US.UTF-8"; | |
}; | |
# Set your time zone. | |
time.timeZone = "America/New_York"; | |
# List packages installed in system profile. To search by name, run: | |
# $ nix-env -qaP | grep wget | |
environment.systemPackages = with pkgs; [ | |
htop | |
]; | |
fonts.fonts = [ | |
pkgs.nerdfonts | |
]; | |
services.xserver = { | |
enable = true; | |
layout = "us,il"; | |
xkbOptions = "grp:switch,grp:alt_shift_toggle"; | |
videoDrivers = [ ]; | |
desktopManager = { | |
xfce.enable = true; | |
default = "none"; | |
xterm.enable = false; | |
}; | |
displayManager = { | |
lightdm.enable = true; | |
}; | |
windowManager = { | |
default = "i3"; | |
i3.enable = true; | |
}; | |
}; | |
hardware.pulseaudio = { | |
enable = true; | |
}; | |
services.acpid.enable = true; | |
powerManagement.enable = true; | |
users.extraUsers = { | |
luser0 = { | |
createHome = true; | |
group = "users"; | |
extraGroups = [ "wheel" "networkmanager" "transmission" ]; | |
home = "/home/luser0"; | |
shell = "/run/current-system/sw/bin/bash"; | |
uid = 1000; | |
}; | |
root.initialPassword = "root"; | |
}; | |
system.stateVersion = "16.03"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Do not modify this file! It was generated by ‘nixos-generate-config’ | |
# and may be overwritten by future invocations. Please make changes | |
# to /etc/nixos/configuration.nix instead. | |
{ config, lib, pkgs, ... }: | |
{ | |
imports = | |
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> | |
]; | |
boot.initrd.availableKernelModules = [ "ohci_pci" "ehci_pci" "pata_amd" "sata_nv" "ahci" "firewire_ohci" "usb_storage" "usbhid" "sd_mod" ]; #coretemp #it87 | |
boot.kernelModules = [ "kvm-intel" ]; | |
boot.extraModulePackages = [ ]; | |
boot.kernelParams = [ "sata_nv.swncq=0" ]; | |
fileSystems."/" = | |
{ device = "/dev/disk/by-uuid/509f350e-2721-4d67-a733-2f4a1aa32e5a"; | |
fsType = "ext4"; | |
}; | |
fileSystems."/mnt/sdb1" = | |
{ device = "/dev/sdb1"; | |
fsType = "ext4"; | |
}; | |
fileSystems."/mnt/sdc1" = | |
{ device = "/dev/sdc1"; | |
fsType = "ext4"; | |
}; | |
swapDevices = [ { device = "/dev/sda6"; } ]; | |
nix.maxJobs = 4; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment