Advertisement
Kakuzade

configuration.nix

Feb 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.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. ./nvidia.nix # Configuración tarjeta gráfica
  12. ./users.nix # Configuración de usuarios
  13. ];
  14.  
  15. # Use the GRUB 2 boot loader.
  16. boot.loader.grub.enable = true;
  17. boot.loader.grub.version = 2;
  18. # boot.loader.grub.efiSupport = true;
  19. # boot.loader.grub.efiInstallAsRemovable = true;
  20. # boot.loader.efi.efiSysMountPoint = "/boot/efi";
  21. # Define on which hard drive you want to install Grub.
  22. boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
  23.  
  24. # Definir una entrada en el GRUB para Windows 8
  25. boot.loader.grub.extraEntries = ''
  26. menuentry "Windows 8" {
  27. chainloader (hd0,1)+1
  28. }
  29. '';
  30.  
  31. networking.hostName = "nixos-miguel"; # Define your hostname.
  32. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  33.  
  34. # Select internationalisation properties.
  35. i18n = {
  36. consoleFont = "Lat2-Terminus16";
  37. consoleKeyMap = "es";
  38. defaultLocale = "es_ES.UTF-8";
  39. };
  40.  
  41. # Set your time zone.
  42. time.timeZone = "America/Montevideo";
  43.  
  44. # List packages installed in system profile. To search by name, run:
  45. # $ nix-env -qaP | grep wget
  46. environment.systemPackages = with pkgs; [
  47. wget
  48. nano
  49. kdeApplications.khelpcenter
  50. filelight
  51. kcalc
  52. kate
  53. gwenview
  54. kdeApplications.okular
  55. kdeApplications.spectacle
  56. unzip
  57. unrar
  58. ark
  59. simple-scan
  60. chromium
  61. vdpauinfo
  62. ];
  63.  
  64. # Configuración de algunos paquetes
  65.  
  66. nixpkgs.config = {
  67.  
  68. allowUnfree = true; # Habilitar paquetes no libres (necesario para drivers privativos)
  69.  
  70. chromium = {
  71. enablePepperFlash = true; # Habilitar flashplayer
  72. enablePepperPDF = true; # Habilitar visor de pdf
  73. #enableWideVine = true; # Habilitar drm
  74. };
  75.  
  76. nano = {
  77. syntaxHighlight = true;
  78. };
  79.  
  80. ark = {
  81. unfreeEnableUnrar = true;
  82. };
  83. };
  84.  
  85. # Some programs need SUID wrappers, can be configured further or are
  86. # started in user sessions.
  87. # programs.bash.enableCompletion = true;
  88. # programs.mtr.enable = true;
  89. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  90.  
  91. # List services that you want to enable:
  92.  
  93. # Enable the OpenSSH daemon.
  94. # services.openssh.enable = true;
  95.  
  96. # Open ports in the firewall.
  97. # networking.firewall.allowedTCPPorts = [ ... ];
  98. # networking.firewall.allowedUDPPorts = [ ... ];
  99. # Or disable the firewall altogether.
  100. # networking.firewall.enable = false;
  101.  
  102. # Enable CUPS to print documents.
  103. services.printing.enable = true;
  104. services.printing.drivers = with pkgs; [ gutenprint ]; # Drivers para la impresora canon
  105.  
  106. # Habilitar soporte para scaners
  107. hardware.sane.enable = true;
  108.  
  109. # Enable the X11 windowing system.
  110. services.xserver.enable = true;
  111. services.xserver.layout = "latam";
  112. # services.xserver.xkbOptions = "eurosign:e";
  113.  
  114. # Enable touchpad support.
  115. # services.xserver.libinput.enable = true;
  116.  
  117. # Enable the KDE Desktop Environment.
  118. services.xserver.displayManager.sddm.enable = true;
  119. services.xserver.desktopManager.plasma5.enable = true;
  120.  
  121. # Habilitar pulseaudio
  122.  
  123. hardware.pulseaudio.enable = true;
  124. hardware.pulseaudio.support32Bit = true; ## If compatibility with 32-bit applications is desired.
  125.  
  126. # This value determines the NixOS release with which your system is to be
  127. # compatible, in order to avoid breaking some software such as database
  128. # servers. You should change this only after NixOS release notes say you
  129. # should.
  130. system.stateVersion = "17.09"; # Did you read the comment?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement