Guest User

Untitled

a guest
Jan 26th, 2017
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 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.canTouchEfiVariables = true;
  16.  
  17. networking.hostName = "nogacto"; # Define your hostname.
  18. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  19.  
  20. # Select internationalisation properties.
  21. # i18n = {
  22. # consoleFont = "Lat2-Terminus16";
  23. # consoleKeyMap = "us";
  24. # defaultLocale = "en_US.UTF-8";
  25. # };
  26.  
  27. # Set your time zone.
  28. time.timeZone = "Europe/Amsterdam";
  29.  
  30. # List packages installed in system profile. To search by name, run:
  31. # $ nix-env -qaP | grep wget
  32. # environment.systemPackages = with pkgs; [
  33. # wget
  34. # ];
  35.  
  36. # List services that you want to enable:
  37.  
  38. # Enable the OpenSSH daemon.
  39. services.openssh.enable = true;
  40.  
  41. # Enable CUPS to print documents.
  42. # services.printing.enable = true;
  43.  
  44. # Enable the X11 windowing system.
  45. services.xserver.enable = true;
  46. services.xserver.layout = "us";
  47. services.xserver.xkbOptions = "eurosign:e";
  48.  
  49. # Enable the KDE Desktop Environment.
  50. services.xserver.displayManager.kdm.enable = true;
  51. services.xserver.desktopManager.kde4.enable = true;
  52.  
  53. # Define a user account. Don't forget to set a password with ‘passwd’.
  54. # users.extraUsers.guest = {
  55. # isNormalUser = true;
  56. # uid = 1000;
  57. # };
  58.  
  59. # The NixOS release to be compatible with for stateful data such as databases.
  60. system.stateVersion = "16.09";
  61.  
  62. boot.initrd.luks.devices = [
  63. {
  64. name = "root";
  65. device = "/dev/mmcblk0p3";
  66. preLVM = true;
  67. }
  68. ];
  69.  
  70. boot.loader.grub.device = "/dev/mmcblk0";
  71.  
  72. users.extraUsers.rainey = {
  73. name = "rainey";
  74. group = "users";
  75. extraGroups = [
  76. "wheel" "disk" "audio" "video"
  77. "networkmanager" "systemd-journal"
  78. ];
  79. createHome = true;
  80. uid = 10000;
  81. home = "/home/rainey";
  82. shell = "/run/current-system/sw/bin/bash";
  83. };
  84.  
  85. }
Advertisement
Add Comment
Please, Sign In to add comment