Created
August 9, 2017 23:21
-
-
Save anonymous/c14faebc6aa88b88ead14ba6ad86377f 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 | |
]; | |
# Use the systemd-boot EFI boot loader. | |
boot.loader.systemd-boot.enable = true; | |
boot.loader.efi.canTouchEfiVariables = true; | |
boot.loader.grub.device = "/dev/sda3"; | |
boot.loader.grub.extraConfig = { '' | |
insmod setpci | |
setpci -s "00:17.0" 3e.b=8 | |
setpci -s "02:00.0" 04.b=7 | |
''; | |
} | |
# boot.initrd.kernelModules = [ "" ]; | |
boot.initrd.luks.devices = [ | |
{ name = "rootfs"; | |
device = "/dev/sda4"; | |
preLVM = true; | |
} | |
]; | |
# Enable all the hardware firmware | |
hardware.enableAllFirmware = true; | |
# Set-up networking services | |
networking.hostName = "nixosLinux"; | |
networking.networkmanager.enable = true; | |
networking.wireless.enable = false; # Disable wireless support via wpa_supplicant. It can not be enabled together with networkManger. | |
# Select internationalisation properties. | |
# i18n = { | |
# consoleFont = "Lat2-Terminus16"; | |
# consoleKeyMap = "us"; | |
# defaultLocale = "en_US.UTF-8"; | |
# }; | |
# Set your time zone. | |
time.timeZone = "Europe/Prague"; | |
# Allow Unfree Packages | |
nixpkgs.config.allowUnfree = true; | |
# List packages installed in system profile. To search by name, run: | |
# $ nix-env -qaP | grep wget | |
# environment.systemPackages = with pkgs; [ | |
# wget | |
# ]; | |
# 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; | |
# Define a user account's. | |
# users.extraUsers.guest = { | |
# isNormalUser = true; | |
# uid = 1000; | |
# }; | |
users.extraUsers.burim ={ | |
isNormalUser = true; | |
home = "/home/burim"; | |
description = "Burim Augustin Berisa"; | |
extraGroups = [ "wheel" "networkmanager" ]; | |
}; | |
# X Window System | |
services.xserver.enable = true; | |
services.xserver.videoDrivers = [ "nouveau" ]; | |
services.xserver.layout = "us"; | |
services.xserver.desktopManager.gnome3.enable = true; | |
services.xserver.displayManager.gdm.enable = true; | |
services.xserver.autorun = false; | |
services.xserver.libinput.enable = true; | |
services.xserver.libinput.naturalScrolling = true; | |
services.xserver.libinput.disableWhileTyping = false; | |
# The NixOS release to be compatible with for stateful data such as databases. | |
system.stateVersion = "17.03"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment