Guest User

Untitled

a guest
Dec 1st, 2018
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 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.efiSysMountPoint = "/boot/efi";
  16. boot.loader.efi.canTouchEfiVariables = true;
  17.  
  18. # Kernel Modules
  19. boot.kernelModules = [ "kvm-amd" "kvm-intel" ];
  20.  
  21. networking.hostName = "nixos"; # Define your hostname.
  22.  
  23. # Select internationalisation properties.
  24. i18n = {
  25. consoleFont = "Lat2-Terminus16";
  26. consoleKeyMap = "uk";
  27. defaultLocale = "en_US.UTF-8";
  28. };
  29.  
  30. # Set your time zone.
  31. time.timeZone = "Europe/Vilnius";
  32.  
  33. # List packages installed in system profile. To search, run:
  34. # $ nix search wget
  35. nixpkgs.config.allowUnfree = true; # Allow nonFree packages.
  36. environment.systemPackages = with pkgs; [
  37. curl wget vim sxhkd git htop nmap feh
  38. exa neofetch cmatrix pavucontrol gcc
  39. firefox tdesktop rofi flameshot jq
  40. termite obs-studio nodejs go mpv kitty proot
  41. curlftpfs ranger kdeconnect compton gimp ffmpeg virtualbox
  42. ];
  43.  
  44. # Some programs need SUID wrappers, can be configured further or are
  45. # started in user sessions.
  46. # programs.bash.enableCompletion = true;
  47. # programs.mtr.enable = true;
  48. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  49.  
  50. # List services that you want to enable:
  51.  
  52. # Enable the OpenSSH daemon.
  53. services.openssh.enable = true;
  54.  
  55. # Enable the Tor daemon.
  56. services.tor.enable = false;
  57.  
  58. # Enable libvirt daemon
  59. virtualisation.libvirtd.enable = true;
  60.  
  61. # Enable VirtualBox
  62. virtualisation.virtualbox.host.enable = true;
  63.  
  64. # Enable NetworkManager
  65. networking.networkmanager.enable = true;
  66. networking.nameservers = [ "1.1.1.1" "1.0.0.1" ]; # Configure DNS servers
  67.  
  68. # Open ports in the firewall.
  69. networking.firewall.allowedTCPPorts = [ 22 80 8080 1337 ];
  70. # networking.firewall.allowedUDPPorts = [ ... ];
  71. # Or disable the firewall altogether.
  72. # networking.firewall.enable = false;
  73.  
  74. # Enable sound.
  75. sound.enable = true;
  76. hardware.pulseaudio.enable = true;
  77.  
  78. # Enable the X11 windowing system.
  79. services.xserver.enable = true;
  80. services.xserver.videoDrivers = [ "nvidia" ];
  81. hardware.opengl.driSupport32Bit = true;
  82. services.xserver.layout = "gb";
  83. services.xserver.xkbOptions = "eurosign:e";
  84.  
  85. # Enable Window manager.
  86. services.xserver.windowManager.bspwm.enable = true;
  87.  
  88. # Set Zsh as default shell.
  89. users.defaultUserShell = pkgs.zsh;
  90.  
  91. # Define a user account. Don't forget to change a password with ‘passwd’.
  92. users.users.stnby = {
  93. isNormalUser = true;
  94. description = "Stnby";
  95. extraGroups = [ "wheel" "networkmanager" "libvirt"];
  96. initialPassword = "default";
  97. uid = 1000;
  98. };
  99.  
  100. system.stateVersion = "18.03"; # Change this only if release notes say to do it!!!
  101.  
  102. }
Add Comment
Please, Sign In to add comment