Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. { config, pkgs, ... }:
  2.  
  3. {
  4. imports = [
  5. # Include the results of the hardware scan.
  6. ./hardware-configuration.nix
  7. ];
  8.  
  9. boot.loader.grub.enable = true;
  10. boot.loader.grub.version = 2;
  11. boot.loader.grub.device = "/dev/sda";
  12.  
  13. networking.hostName = "nix"; # Define your hostname.
  14.  
  15. # Select internationalisation properties.
  16. i18n = {
  17. consoleFont = "Lat2-Terminus16";
  18. consoleKeyMap = "us";
  19. defaultLocale = "en_US.UTF-8";
  20. };
  21.  
  22. # Set your time zone.
  23. time.timeZone = "America/New_York";
  24.  
  25. # List packages installed in system profile. To search by name, run:
  26. # $ nix-env -qaP | grep wget
  27. environment.systemPackages = with pkgs; [
  28. firefox
  29. git
  30. mkpasswd
  31. nodejs
  32. openssh
  33. screen
  34. vim
  35. which
  36. ];
  37.  
  38. # Enable the X11 windowing system.
  39. services.xserver.enable = true;
  40. services.xserver.layout = "us";
  41. services.xserver.desktopManager.xfce.enable = true;
  42.  
  43. users.users.root = {
  44. hashedPassword = "$6$/tIPpWX0tuUAs$gQaQ5oEGZmKHNUvMTdp5jNcZHwqO3qislpDLW70iIXdNPreGF05THI8ZBWCZVtsKRMM.taDbHsTWXb3ZiEZ0x.";
  45. };
  46. users.extraUsers.shawnd = {
  47. createHome = true;
  48. extraGroups = [
  49. "wheel"
  50. ];
  51. hashedPassword = "$6$yZireHRPb$CgX9Yf7MPq5ladzbrCTAIsaKCFj23RQ.r3R7GN/VYts1d/tcY6Fn3MCFWc4gXklcYpKedbllQhmu8VDxUeHfW0";
  52. isNormalUser = true;
  53. useDefaultShell = true;
  54. };
  55.  
  56. security.sudo.enable = true;
  57. security.sudo.wheelNeedsPassword = false;
  58.  
  59. # The NixOS release to be compatible with for stateful data such as databases.
  60. system.stateVersion = "16.03";
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement