Advertisement
Guest User

Untitled

a guest
May 29th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. # Edit this configuration file to define what should be installed on
  2. # your system. Help is available in the configuration.nix(5) man page
  3. # and in the NixOS manual (accessible by running ‘nixos-help’).
  4.  
  5. { config, pkgs, ... }:
  6.  
  7. {
  8. imports =
  9. [ # Include the results of the hardware scan.
  10. ./hardware-configuration.nix
  11. ];
  12.  
  13. # Use the GRUB 2 boot loader.
  14. boot.loader.grub.enable = true;
  15. boot.loader.grub.version = 2;
  16. # boot.loader.grub.efiSupport = true;
  17. # boot.loader.grub.efiInstallAsRemovable = true;
  18. # boot.loader.efi.efiSysMountPoint = "/boot/efi";
  19. # Define on which hard drive you want to install Grub.
  20. boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
  21.  
  22. # networking.hostName = "nixos"; # Define your hostname.
  23. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. networ
  24. networking.networkmanager.enable = true;
  25. programs.bash.enableCompletion = true;
  26.  
  27. nixpkgs.config.allowUnfree = true;
  28.  
  29. # Select internationalisation properties.
  30. i18n = {
  31. consoleFont = "Lat2-Terminus16";
  32. #consoleKeyMap = "us";
  33. consoleUseXkbConfig = true;
  34. defaultLocale = "en_US.UTF-8";
  35. };
  36.  
  37. # Set your time zone.
  38. # time.timeZone = "Europe/Amsterdam";
  39.  
  40. # List packages installed in system profile. To search by name, run:
  41. # $ nix-env -qaP | grep wget
  42. environment.systemPackages = with pkgs; [
  43. wget networkmanager
  44. ];
  45.  
  46. # List services that you want to enable:
  47.  
  48. # Enable the OpenSSH daemon.
  49. # services.openssh.enable = true;
  50.  
  51. # Open ports in the firewall.
  52. # networking.firewall.allowedTCPPorts = [ ... ];
  53. # networking.firewall.allowedUDPPorts = [ ... ];
  54. # Or disable the firewall altogether.
  55. # networking.firewall.enable = false;
  56.  
  57. # Enable CUPS to print documents.
  58. # services.printing.enable = true;
  59.  
  60. # Enable the X11 windowing system.
  61. services.xserver.enable = true;
  62. services.xserver.layout = "no";
  63. # services.xserver.xkbOptions = "eurosign:e";
  64. services.xserver.videoDrivers = [ "nvidiaLegacy304" ];
  65.  
  66.  
  67. # Enable the KDE Desktop Environment.
  68. services.xserver.displayManager.sddm.enable = true;
  69. services.xserver.desktopManager.plasma5.enable = true;
  70. services.xserver.desktopManager.xfce.enable = true;
  71.  
  72. # Define a user account. Don't forget to set a password with ‘passwd’.
  73. users.extraUsers.tosh = {
  74. isNormalUser = true;
  75. uid = 1000;
  76. initialPassword="*****";
  77. };
  78.  
  79. # The NixOS release to be compatible with for stateful data such as databases.
  80. system.stateVersion = "17.03";
  81.  
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement