Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

124 wiersze
3.9 KiB

5 lat temu
  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. { config, pkgs, ... }:
  5. {
  6. imports =
  7. [ # Include the results of the hardware scan.
  8. ./hardware-configuration.nix
  9. ./users.nix
  10. ./workstation.nix
  11. ];
  12. # Use the GRUB 2 boot loader.
  13. boot.loader.grub.enable = true;
  14. boot.loader.grub.version = 2;
  15. # boot.loader.grub.efiSupport = true;
  16. # boot.loader.grub.efiInstallAsRemovable = true;
  17. # boot.loader.efi.efiSysMountPoint = "/boot/efi";
  18. # Define on which hard drive you want to install Grub.
  19. boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
  20. programs.vim.defaultEditor = true;
  21. programs.wireshark.enable = true;
  22. networking.hostName = "kurixos"; # Define your hostname.
  23. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  24. networking.networkmanager.enable = true;
  25. # Configure network proxy if necessary
  26. # networking.proxy.default = "http://user:password@proxy:port/";
  27. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  28. nixpkgs.config.allowUnfree = true;
  29. # Select internationalisation properties.
  30. i18n = {
  31. consoleFont = "Lat2-Terminus16";
  32. consoleKeyMap = "uk";
  33. defaultLocale = "en_GB.UTF-8";
  34. };
  35. services.emacs.enable = true;
  36. # services.emacs.package = import /home/klimi/.emacs.d { pkgs = pkgs; };
  37. # Set your time zone.
  38. time.timeZone = "Europe/Prague";
  39. hardware.pulseaudio.support32Bit = true;
  40. # List packages installed in system profile. To search, run:
  41. # $ nix search wget
  42. environment.systemPackages = import ./packages.nix {pkgs = pkgs;};
  43. # Some programs need SUID wrappers, can be configured further or are
  44. # started in user sessions.
  45. # programs.mtr.enable = true;
  46. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  47. # List services that you want to enable:
  48. # Enable the OpenSSH daemon.
  49. # services.openssh.enable = true;
  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. # Enable CUPS to print documents.
  56. services.printing.enable = true;
  57. # Enable sound.
  58. sound.enable = true;
  59. hardware.pulseaudio.enable = true;
  60. # Enable the X11 windowing system.
  61. services.xserver.enable = true;
  62. services.xserver.layout = "gb";
  63. # services.xserver.xkbOptions = "eurosign:e";
  64. # services.xserver.windowManager.xmonad.enable = true;
  65. services.xserver.videoDrivers = [ "nvidiaLegacy340" ];
  66. # hardware.opengl.driSupport32Bit = true;
  67. # Enable touchpad support.
  68. services.xserver.libinput.enable = true;
  69. services.xserver.libinput.tapping = true;
  70. fonts.fonts = with pkgs; [
  71. caladea
  72. carlito
  73. cantarell-fonts
  74. comic-relief
  75. liberation_ttf
  76. fira
  77. fira-mono
  78. dejavu_fonts
  79. powerline-fonts
  80. ];
  81. security.sudo.configFile =
  82. ''
  83. Defaults:root,%wheel env_keep+=LOCALE_ARCHIVE
  84. Defaults:root,%wheel env_keep+=NIX_PATH
  85. Defaults:root,%wheel env_keep+=TERMINFO_DIRS
  86. Defaults env_keep+=SSH_AUTH_SOCK
  87. Defaults lecture=never
  88. Defaults shell_noargs
  89. root ALL=(ALL) SETENV: ALL
  90. %wheel ALL=(ALL) NOPASSWD: ALL, SETENV: ALL
  91. '';
  92. # Enable the KDE Desktop Environment.
  93. # services.xserver.displayManager.sddm.enable = true;
  94. # services.xserver.desktopManager.plasma5.enable = true;
  95. # Define a user account. Don't forget to set a password with ‘passwd’.
  96. programs.fish.enable = true;
  97. programs.tmux.enable = true;
  98. # This value determines the NixOS release with which your system is to be
  99. # compatible, in order to avoid breaking some software such as database
  100. # servers. You should change this only after NixOS release notes say you
  101. # should.
  102. system.stateVersion = "18.09"; # Did you read the comment?
  103. }