Skip to content

Instantly share code, notes, and snippets.

Created April 5, 2017 22:47
Show Gist options
  • Save anonymous/a27932b3bae9bfcfd2c2b758d8cb3c53 to your computer and use it in GitHub Desktop.
Save anonymous/a27932b3bae9bfcfd2c2b758d8cb3c53 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 = "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 = "us";
defaultLocale = "ru_RU.UTF-8";
};
nixpkgs.config = {
allowUnfree = true;
chromium = {
enablePepperFlash = true;
enablePepperPDF = true;
};
};
# Set your time zone.
time.timeZone = "Europe/Moscow";
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [
iw
wget
nano
gnupg # is needed for kde to download desktop wallpapers
linuxPackages.perf
chromium
skype
qbittorrent
gimp
libreoffice
mpv
kde4.l10n
kde4.ark p7zip unrar
kde4.gwenview
kde4.ksnapshot
kde4.okular
kde4.kdegames
];
# 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,ru";
hardware.pulseaudio.enable = true;
hardware.opengl.extraPackages = [ pkgs.vaapiIntel ];
# services.xserver.xkbOptions = "eurosign:e";
# Enable the KDE Desktop Environment.
services.xserver.displayManager.kdm.enable = true;
services.xserver.displayManager.kdm.extraConfig = ''
[X-:0-Core]
AutoLoginEnable=true
AutoLoginUser=katya
'';
services.xserver.desktopManager.kde4.enable = true;
services.xserver.synaptics.enable = true;
services.xserver.synaptics.twoFingerScroll = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
# users.extraUsers.guest = {
# isNormalUser = true;
# uid = 1000;
# };
# The NixOS release to be compatible with for stateful data such as databases.
system.stateVersion = "16.09";
users.extraUsers.katya = {
name = "katya";
group = "users";
extraGroups = ["wheel" "networkmanager"];
uid = 1001;
createHome = true;
home = "/home/katya";
shell = "/run/current-system/sw/bin/bash";
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment