Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2019
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 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 = {
  15. systemd-boot.enable = true;
  16. efi.canTouchEfiVariables = true;
  17. };
  18.  
  19. networking = {
  20. hostName = "T480-philipp-dargel"; # Define your hostname.
  21. wireless.enable = true; # Enables wireless support via wpa_supplicant.
  22. firewall = {
  23. # Open ports in the firewall.
  24. allowedTCPPorts = [ 80 8080 8081 ];
  25. # allowedUDPPorts = [ ... ];
  26. # Or disable the firewall altogether.
  27. # enable = false;
  28. };
  29. };
  30.  
  31. # Configure network proxy if necessary
  32. # networking.proxy.default = "http://user:password@proxy:port/";
  33. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  34.  
  35. # Select internationalisation properties.
  36. i18n = {
  37. consoleFont = "Lat2-Terminus16";
  38. consoleKeyMap = "de";
  39. defaultLocale = "de_DE.UTF-8";
  40. };
  41.  
  42. # Set your time zone.
  43. time.timeZone = "Europe/Berlin";
  44.  
  45. # List packages installed in system profile. To search, run:
  46. # $ nix search wget
  47. environment.systemPackages = with pkgs; [
  48. wget
  49. vim
  50. git
  51. ];
  52.  
  53. # Some programs need SUID wrappers, can be configured further or are
  54. # started in user sessions.
  55. # programs.mtr.enable = true;
  56. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  57. programs.zsh.enable = true;
  58.  
  59. # List services that you want to enable:
  60.  
  61. # Enable the OpenSSH daemon.
  62. # services.openssh.enable = true;
  63.  
  64.  
  65. # Enable CUPS to print documents.
  66. services.printing.enable = true;
  67.  
  68. # Enable sound.
  69. sound.enable = true;
  70. hardware.pulseaudio.enable = true;
  71.  
  72. # Enable the X11 windowing system.
  73. services.xserver = {
  74. enable = true;
  75. layout = "de";
  76. xkbOptions = "eurosign:e";
  77. libinput.enable = true; # Enable touchpad support.
  78. displayManager.sddm = {
  79. enable = true;
  80. autoNumlock = true;
  81. };
  82. # windowManager.i3 = {
  83. # enable = true;
  84. # extraPackages = with pkgs; [
  85. # dmenu
  86. # i3status
  87. # i3blocks
  88. # i3lock
  89. # ];
  90. # };
  91. desktopManager.plasma5.enable = true;
  92. };
  93.  
  94. # Define a user account. Don't forget to set a password with ‘passwd’.
  95. users.extraUsers.philipp = {
  96. isNormalUser = true;
  97. uid = 1000;
  98. extraGroups = [ "wheel" "networkmanager" ];
  99. shell = pkgs.zsh;
  100. };
  101.  
  102. environment.variables = {
  103. OH_MY_ZSH = [ "${pkgs.oh-my-zsh}/share/oh-my-zsh" ];
  104. };
  105.  
  106. # This value determines the NixOS release with which your system is to be
  107. # compatible, in order to avoid breaking some software such as database
  108. # servers. You should change this only after NixOS release notes say you
  109. # should.
  110. system.stateVersion = "18.09"; # Did you read the comment?
  111.  
  112. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement