Advertisement
Guest User

NixOS configuration FIRST EVER

a guest
Jan 17th, 2019
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 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 systemd-boot EFI boot loader.
  14. boot.loader.systemd-boot.enable = true;
  15. boot.loader.efi.canTouchEfiVariables = true;
  16.  
  17. networking.hostName = "nixosIntj"; # Define your hostname.
  18. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  19.  
  20. # Configure network proxy if necessary
  21. # networking.proxy.default = "http://user:password@proxy:port/";
  22. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  23.  
  24. # Select internationalisation properties.
  25. #i18n = {
  26. # consoleFont = "Lat2-Terminus16";
  27. # consoleKeyMap = "us";
  28. # defaultLocale = "en_US.UTF-8";
  29. #};
  30.  
  31. # Set your time zone.
  32. time.timeZone = "America/Sao_Paulo";
  33.  
  34. # List packages installed in system profile. To search, run:
  35. # $ nix search wget
  36. environment.systemPackages = with pkgs; [
  37. wget vim
  38. ];
  39.  
  40. # Some programs need SUID wrappers, can be configured further or are
  41. # started in user sessions.
  42. # programs.mtr.enable = true;
  43. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  44.  
  45. # List services that you want to enable:
  46.  
  47. # Enable the OpenSSH daemon.
  48. services.openssh.enable = true;
  49.  
  50. # Open ports in the firewall.
  51. # networking.firewall.allowedTCPPorts = [ ... ];
  52. # networking.firewall.allowedUDPPorts = [ ... ];
  53. # Or disable the firewall altogether.
  54. # networking.firewall.enable = false;
  55.  
  56. # Enable CUPS to print documents.
  57. # services.printing.enable = true;
  58.  
  59. # Enable sound.
  60. # sound.enable = true;
  61. # hardware.pulseaudio.enable = true;
  62.  
  63. # Enable the X11 windowing system.
  64. services.xserver.enable = true;
  65. #services.xserver.layout = "us";
  66. # services.xserver.xkbOptions = "eurosign:e";
  67.  
  68. # Enable touchpad support.
  69. # services.xserver.libinput.enable = true;
  70.  
  71. # Enable the KDE Desktop Environment.
  72. # services.xserver.displayManager.sddm.enable = true;
  73. # services.xserver.desktopManager.plasma5.enable = true;
  74. services.xserver.desktopManager.gnome3.enable = true;
  75. services.xserver.autorun = false;
  76. services.xserver.displayManager.gdm.enable = true;
  77. services.xserver.desktopManager.xterm.enable = false;
  78.  
  79. # Define a user account. Don't forget to set a password with ‘passwd’.
  80. # users.users.guest = {
  81. # isNormalUser = true;
  82. # uid = 1000;
  83. # };
  84.  
  85. # This value determines the NixOS release with which your system is to be
  86. # compatible, in order to avoid breaking some software such as database
  87. # servers. You should change this only after NixOS release notes say you
  88. # should.
  89. system.stateVersion = "18.09"; # Did you read the comment?
  90.  
  91. system.autoUpgrade.enable = true;
  92.  
  93. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement