Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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.splashImage = null;
- boot.loader.grub.configurationLimit = 10;
- # Define on which hard drive you want to install Grub.
- boot.loader.grub.device = "/dev/sda";
- boot.tmpOnTmpfs = true;
- nix.binaryCaches = [ "https://cache.nixos.org/" ];
- #nix.binaryCaches = [];
- fileSystems."/".device = "/dev/disk/by-uuid/c4447fa3-85b6-4e1f-94a2-d3237f3d1b66";
- fileSystems."/".fsType = "xfs";
- networking.hostName = "nixos"; # Define your hostname.
- networking.networkmanager.enable = true;
- networking.firewall.enable = false;
- #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
- htop
- linuxPackages.perf binutils
- chromium
- skype
- qbittorrent
- gimp
- libreoffice
- mpv
- keepassx2
- kde4.l10n.ru
- kde4.ark p7zip unrar
- kde4.gwenview
- kde4.ksnapshot
- kde4.okular
- kde4.kdegames
- steam
- ];
- # 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;
- # 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
- AutoLoginPass=123456
- '';
- services.xserver.desktopManager.kde4.enable = true;
- services.xserver.synaptics.enable = true;
- services.xserver.synaptics.twoFingerScroll = true;
- hardware.opengl = {
- extraPackages = [ pkgs.vaapiIntel ];
- driSupport = true;
- driSupport32Bit = 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";
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement