spacepaste

  1.  
  2. # Edit this configuration file to define what should be installed on
  3. # your system. Help is available in the configuration.nix(5) man page
  4. # and in the NixOS manual (accessible by running ‘nixos-help’).
  5. { config, pkgs, ... }:
  6. {
  7. imports =
  8. [ # Include the results of the hardware scan.
  9. ./hardware-configuration.nix
  10. ];
  11. # Use the GRUB 2 boot loader.
  12. boot.loader.grub.enable = true;
  13. boot.loader.grub.version = 2;
  14. boot.loader.grub.device = "/dev/sda";
  15. # boot.loader.grub.efiSupport = true;
  16. # boot.loader.grub.efiInstallAsRemovable = true;
  17. # boot.loader.efi.efiSysMountPoint = "/boot/efi";
  18. # Define on which hard drive you want to install Grub.
  19. # boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
  20. # networking.hostName = "nixos"; # Define your hostname.
  21. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  22. networking.networkmanager.enable = true;
  23. # Configure network proxy if necessary
  24. # networking.proxy.default = "http://user:password@proxy:port/";
  25. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  26. # Select internationalisation properties.
  27. # i18n = {
  28. # consoleFont = "Lat2-Terminus16";
  29. # consoleKeyMap = "us";
  30. # defaultLocale = "en_US.UTF-8";
  31. # };
  32. # Set your time zone.
  33. time.timeZone = "Europe/Moscow";
  34. # List packages installed in system profile. To search, run:
  35. # $ nix search wget
  36. environment.systemPackages = with pkgs; [
  37. wget vim
  38. ];
  39. # Some programs need SUID wrappers, can be configured further or are
  40. # started in user sessions.
  41. # programs.mtr.enable = true;
  42. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  43. # List services that you want to enable:
  44. # Enable the OpenSSH daemon.
  45. # services.openssh.enable = true;
  46. # Open ports in the firewall.
  47. # networking.firewall.allowedTCPPorts = [ ... ];
  48. # networking.firewall.allowedUDPPorts = [ ... ];
  49. # Or disable the firewall altogether.
  50. # networking.firewall.enable = false;
  51. # Enable CUPS to print documents.
  52. # services.printing.enable = true;
  53. # Enable sound.
  54. # sound.enable = true;
  55. # hardware.pulseaudio.enable = true;
  56. # Enable the X11 windowing system.
  57. services.xserver.enable = true;
  58. # services.xserver.layout = "us";
  59. # services.xserver.xkbOptions = "eurosign:e";
  60. # Enable touchpad support.
  61. # services.xserver.libinput.enable = true;
  62. # Enable the KDE Desktop Environment.
  63. services.xserver.displayManager.sddm.enable = true;
  64. services.xserver.desktopManager.plasma5.enable = true;
  65. # Define a user account. Don't forget to set a password with ‘passwd’.
  66. users.users.nirvana = {
  67. isNormalUser = true;
  68. uid = 1000;
  69. };
  70. # This value determines the NixOS release with which your system is to be
  71. # compatible, in order to avoid breaking some software such as database
  72. # servers. You should change this only after NixOS release notes say you
  73. # should.
  74. system.stateVersion = "18.09"; # Did you read the comment?
  75. }
  76.