Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { config, pkgs, ... }:
- {
- imports =
- [ # Include the results of the hardware scan.
- ./hardware-configuration.nix
- ];
- hardware.pulseaudio.support32Bit = true;
- nixpkgs.config.allowUnfree = true;
- services.xserver.videoDrivers = [ "nvidia" ];
- hardware.opengl.driSupport32Bit = true;
- boot.loader.grub.enable = true;
- boot.loader.grub.version = 2;
- boot.loader.grub.device = "/dev/sda";
- networking.hostName = "nixos";
- # Localisation
- i18n = {
- consoleFont = "Lat2-Terminus16";
- consoleKeyMap = "ru";
- defaultLocale = "ru_RU.UTF-8";
- };
- # Set your time zone.
- time.timeZone = "Europe/Moscow";
- # Packages
- environment.systemPackages = with pkgs; [
- psmisc playonlinux wine winetricks atom firefox wget git
- ];
- # Some programs need SUID wrappers, can be configured further or are
- # started in user sessions.
- # programs.bash.enableCompletion = true;
- # programs.mtr.enable = true;
- # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
- # 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;
- # Enable the X11 windowing system.
- services.xserver.enable = true;
- services.xserver.layout = "us";
- services.xserver.xkbOptions = "eurosign:e";
- # Enable touchpad support.
- # services.xserver.libinput.enable = true;
- services.xserver.displayManager.lightdm.enable = true;
- services.xserver.desktopManager.plasma5.enable = true;
- # Define a user account. Don't forget to set a password with ‘passwd’.
- users.extraUsers.aprokurov = {
- extraGroups = [ "wheel" "audio" "video" ];
- isNormalUser = true;
- uid = 1000;
- home = "/home/aprokurov";
- };
- # This value determines the NixOS release with which your system is to be
- # compatible, in order to avoid breaking some software such as database
- # servers. You should change this only after NixOS release notes say you
- # should.
- system.stateVersion = "17.09"; # Did you read the comment?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement