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
- ];
- ###BOOT
- # Use the systemd-boot EFI boot loader.
- boot.loader.systemd-boot.enable = true;
- boot.loader.efi.canTouchEfiVariables = true;
- boot.kernelParams = [
- "acpi_osi="
- ];
- # boot.loader.grub.device = /dev/sda1;
- ###LAOCALE
- # Select internationalisation properties.
- i18n = {
- # consoleFont = "cyr-sun16";
- # consoleKeyMap = "us,ru";
- defaultLocale = "ru_RU.UTF-8";
- };
- # Set your time zone.
- time.timeZone = "Asia/Yekaterinburg";
- ###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
- emacs
- emacsPackages.ess
- auctex
- hunspell
- wineStaging
- libreoffice
- pidgin
- ark
- ktorrent
- kde-gtk-config
- terminus_font
- htop
- mc
- ] ++ [
- kdeApplications.okular
- ]
- ;
- nixpkgs.config = {
- allowUnfree = true;
- packageOverrides = pkgs: {
- # Define my own Emacs
- emacs = pkgs.lib.overrideDerivation (pkgs.emacs.override {
- # Use gtk3 instead of the default gtk2
- withGTK2 = true;
- withGTK3 = false;
- #gtk = pkgs.gtk2;
- # Make sure imagemgick is a dependency because I regularly
- # look at pictures from Emasc
- });
- };
- };
- ###NETWORKING
- networking.hostName = "ASUS"; # Define your hostname.
- # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
- # 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;
- drivers = [ pkgs.hplipWithPlugin ];
- };
- # Enable NetworkManger.
- networking.networkmanager.enable = true;
- ###X11
- # Enable the X11 windowing system.
- services.xserver.enable = true;
- services.xserver.layout = "us,ru";
- services.xserver.xkbOptions = "grp:caps_toggle,grp_led:scroll,compose:ralt";
- services.xserver.synaptics.enable = true;
- services.xserver.synaptics.twoFingerScroll = true;
- services.xserver.synaptics.additionalOptions = ''
- Option "HorizTwoFingerScroll" "1" '';
- ###ENVIRONMENT
- # Enable the KDE Desktop Environment.
- services.xserver.displayManager.sddm.enable = true;
- services.xserver.desktopManager.plasma5.enable = true;
- ###HARDWARE
- hardware.pulseaudio.enable = true;
- hardware.bumblebee.enable = true;
- ###USERS
- # Define a user account. Don't forget to set a password with ‘passwd’.
- users.extraUsers.croll = {
- home = "/home/croll";
- description = "Artur";
- extraGroups = [ "wheel" "networkmanager" ];
- isNormalUser = true;
- uid = 1000;
- };
- # The NixOS release to be compatible with for stateful data such as databases.
- system.stateVersion = "17.03";
- }
Advertisement
Add Comment
Please, Sign In to add comment