Guest User

Untitled

a guest
Jul 23rd, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. { config, pkgs, ... }:
  2.  
  3. {
  4. imports =
  5. [ # Include the results of the hardware scan.
  6. ./hardware-configuration.nix
  7. ];
  8.  
  9. boot.loader.grub.enable = true;
  10. boot.loader.grub.version = 2;
  11. # boot.loader.grub.efiSupport = true;
  12. # boot.loader.grub.efiInstallAsRemovable = true;
  13. # boot.loader.efi.efiSysMountPoint = "/boot/efi";
  14. # Define on which hard drive you want to install Grub.
  15. boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
  16.  
  17. networking.hostName = "nixos"; # Define your hostname.
  18. # networking.wireless.enable = true;
  19. networking.networkmanager.enable = true;
  20.  
  21. i18n = {
  22. consoleFont = "Lat2-Terminus16";
  23. consoleKeyMap = "us";
  24. defaultLocale = "en_US.UTF-8";
  25. };
  26.  
  27. time.timeZone = "Europe/Amsterdam";
  28.  
  29. environment.systemPackages = with pkgs; [
  30. nixops networkmanagerapplet curl wget nmap telnet wireshark bluez gnupg
  31. tor torsocks tsocks privoxy ssmtp mailutils
  32. pa_applet gparted netcat-openbsd htop atop iotop strace tcpdump lsof
  33. libevent vim bash zsh bison ctags cron binutils file
  34. p7zip unzip
  35. arandr
  36. xfce.thunar
  37. xfce.xfce4notifyd
  38. xfce.xfce4_power_manager
  39. xfce.xfce4-hardware-monitor-plugin
  40. xfce.xfce4-screenshooter
  41. xfce.xfce4volumed
  42. xfce.xfce4settings
  43. xfce.xfconf
  44. ];
  45.  
  46. fonts.fonts = with pkgs; [
  47. inconsolata terminus_font ubuntu_font_family
  48. ];
  49.  
  50. # Some programs need SUID wrappers, can be configured further or are
  51. # started in user sessions.
  52. programs.mtr.enable = true;
  53. programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  54.  
  55. fileSystems = [
  56. { device = "/dev/sda2";
  57. mountPoint = "/mnt";
  58. }
  59.  
  60. { device = "/dev/sda1";
  61. mountPoint = "/storage";
  62. options = [ "rw" ];
  63. }
  64. ];
  65.  
  66. swapDevices = [{ label = "swap";}];
  67.  
  68. # Define a user account. Don't forget to set a password with ‘passwd’.
  69. users.users.guest = {
  70. name = "guest";
  71. group = "users";
  72. isNormalUser = true;
  73. uid = 1000;
  74. extraGroups = [ "wheel" "disk" "audio" "video" "networkmanager" ];
  75. home = "/home/guest";
  76. createHome = true;
  77. initialPassword = "";
  78. };
  79.  
  80. users.defaultUserShell = "/run/current-system/sw/bin/bash";
  81.  
  82. # List services that you want to enable:
  83.  
  84. # Enable the OpenSSH daemon.
  85. services.openssh.enable = true;
  86. # services.sshd.enable = true;
  87.  
  88. networking.firewall.enable = true;
  89. networking.firewall.allowPing = false;
  90. networking.firewall.allowedTCPPorts = [ ... ];
  91. networking.firewall.allowedUDPPorts = [ ... ];
  92. # Or disable the firewall altogether.
  93. # networking.firewall.enable = false;
  94.  
  95. sound.enable = true;
  96. hardware.pulseaudio.enable = true;
  97. powerManagement.enable = true;
  98.  
  99. services.tor.enable = true;
  100. services.tor.client.enable = true;
  101. services.printing.enable = true;
  102.  
  103. services.xserver.enable = true;
  104. services.xserver.layout = "us";
  105. services.xserver.xkbOptions = "eurosign:e";
  106.  
  107. # Enable touchpad support.
  108. services.xserver.libinput.enable = true;
  109.  
  110. services.xserver.desktopManager = {
  111. xfce.enable = true;
  112. default = "xfce";
  113. };
  114.  
  115. services.postgresql.enable = true;
  116. services.postgresql.package = pkgs.postgresql94;
  117.  
  118. # This value determines the NixOS release with which your system is to be
  119. # compatible, in order to avoid breaking some software such as database
  120. # servers. You should change this only after NixOS release notes say you
  121. # should.
  122. system.nixos.stateVersion = "18.03"; # Did you read the comment?
  123.  
  124. }
Add Comment
Please, Sign In to add comment