Advertisement
Guest User

Untitled

a guest
Sep 30th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. # cat /etc/nixos/configuration.nix
  2. # Edit this configuration file to define what should be installed on
  3. # your system. Help is available in the configuration.nix(5) man page
  4. # and in the NixOS manual (accessible by running ‘nixos-help’).
  5.  
  6. { config, pkgs, ... }:
  7.  
  8. {
  9. imports =
  10. [ # Include the results of the hardware scan.
  11. ./hardware-configuration.nix
  12. ];
  13.  
  14. nixpkgs.config = {
  15. allowUnfree = true;
  16. };
  17.  
  18. # Use the systemd-boot EFI boot loader.
  19. boot.loader.systemd-boot.enable = true;
  20. boot.loader.efi.canTouchEfiVariables = true;
  21.  
  22. networking.hostName = "gehirnfasching"; # Define your hostname.
  23. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  24.  
  25. # Select internationalisation properties.
  26. i18n = {
  27. consoleFont = "Lat2-Terminus16";
  28. consoleKeyMap = "de";
  29. defaultLocale = "de_DE.UTF-8";
  30. };
  31.  
  32. # Set your time zone.
  33. time.timeZone = "Europe/Berlin";
  34.  
  35. # List packages installed in system profile. To search by name, run:
  36. # $ nix-env -qaP | grep wget
  37. # environment.systemPackages = with pkgs; [
  38. # wget
  39. # ];
  40.  
  41. # List services that you want to enable:
  42.  
  43. # Enable the OpenSSH daemon.
  44. services.openssh.enable = true;
  45.  
  46. # Open ports in the firewall.
  47. # networking.firewall.allowedTCPPorts = [ ... ];
  48. # networking.firewall.allowedUDPPorts = [ ... ];
  49. # Or disable the firewall altogether.
  50. # networking.firewall.enable = false;
  51.  
  52. # Enable CUPS to print documents.
  53. # services.printing.enable = true;
  54.  
  55. # Enable the X11 windowing system.
  56. services.xserver.enable = true;
  57. services.xserver.layout = "de";
  58. services.xserver.videoDrivers = [ "nvidia" ];
  59. # services.xserver.xkbOptions = "eurosign:e";
  60.  
  61. # Enable the KDE Desktop Environment.
  62. services.xserver.displayManager.sddm.enable = true;
  63. services.xserver.desktopManager.plasma5.enable = true;
  64.  
  65. programs.zsh.enable = true;
  66.  
  67. # Define a user account. Don't forget to set a password with ‘passwd’.
  68. users.extraUsers.trem = {
  69. isNormalUser = true;
  70. uid = 1000;
  71. extraGroups = [ "wheel" ];
  72. shell = pkgs.zsh;
  73. };
  74.  
  75. # The NixOS release to be compatible with for stateful data such as databases.
  76. system.stateVersion = "17.03";
  77.  
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement