Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 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 = "nixos"; # Define your hostname.
  18. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  19.  
  20. # The global useDHCP flag is deprecated, therefore explicitly set to false here.
  21. # Per-interface useDHCP will be mandatory in the future, so this generated config
  22. # replicates the default behaviour.
  23. networking.useDHCP = false;
  24. networking.interfaces.enp0s3.useDHCP = true;
  25.  
  26. virtualisation.virtualbox.guest.enable = true;
  27.  
  28. services.xserver.videoDrivers = [ "virtualbox" "vmware" "cirrus" "vesa" ];
  29. services.xserver.videoDriver = "virtualbox";
  30.  
  31.  
  32. # Configure network proxy if necessary
  33. # networking.proxy.default = "http://user:password@proxy:port/";
  34. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  35.  
  36. # Select internationalisation properties.
  37. # i18n = {
  38. # consoleFont = "Lat2-Terminus16";
  39. # consoleKeyMap = "us";
  40. # defaultLocale = "en_US.UTF-8";
  41. # };
  42.  
  43. # Set your time zone.
  44. # time.timeZone = "Europe/Amsterdam";
  45.  
  46. # List packages installed in system profile. To search, run:
  47. # $ nix search wget
  48. # environment.systemPackages = with pkgs; [
  49. # wget vim
  50. # ];
  51. environment.systemPackages = [pkgs.firefox];
  52. # Some programs need SUID wrappers, can be configured further or are
  53. # started in user sessions.
  54. # programs.mtr.enable = true;
  55. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  56.  
  57. # List services that you want to enable:
  58.  
  59. # Enable the OpenSSH daemon.
  60. # services.openssh.enable = true;
  61.  
  62. # Open ports in the firewall.
  63. # networking.firewall.allowedTCPPorts = [ ... ];
  64. # networking.firewall.allowedUDPPorts = [ ... ];
  65. # Or disable the firewall altogether.
  66. # networking.firewall.enable = false;
  67.  
  68. # Enable CUPS to print documents.
  69. # services.printing.enable = true;
  70.  
  71. # Enable sound.
  72. sound.enable = true;
  73. hardware.pulseaudio.enable = true;
  74.  
  75. # Enable the X11 windowing system.
  76. services.xserver.enable = true;
  77. services.xserver.layout = "us";
  78. services.xserver.xkbOptions = "eurosign:e";
  79.  
  80. # Enable touchpad support.
  81. # services.xserver.libinput.enable = true;
  82.  
  83. # Enable the KDE Desktop Environment.
  84. services.xserver.displayManager.sddm.enable = true;
  85. services.xserver.desktopManager.plasma5.enable = true;
  86.  
  87. # Define a user account. Don't forget to set a password with ‘passwd’.
  88. users.users.user = {
  89. isNormalUser = true;
  90. extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
  91. };
  92.  
  93. # This value determines the NixOS release with which your system is to be
  94. # compatible, in order to avoid breaking some software such as database
  95. # servers. You should change this only after NixOS release notes say you
  96. # should.
  97. system.stateVersion = "19.09"; # Did you read the comment?
  98.  
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement