Advertisement
Guest User

Untitled

a guest
Feb 25th, 2013
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. # the system. Help is available in the configuration.nix(5) man page
  2. # or the NixOS manual available on virtual console 8 (Alt+F8).
  3.  
  4. { config, pkgs, ... }:
  5.  
  6. {
  7. require =
  8. [ # Include the results of the hardware scan.
  9. ./hardware-configuration.nix
  10. ];
  11.  
  12. boot.initrd.kernelModules =
  13. [ # Specify all kernel modules that are necessary for mounting the root
  14. # filesystem.
  15. # "xfs" "ata_piix"
  16. ];
  17.  
  18. # Use the GRUB 2 boot loader.
  19. boot.loader.grub.enable = true;
  20. boot.loader.grub.version = 2;
  21.  
  22. # Define on which hard drive you want to install Grub.
  23. boot.loader.grub.device = "/dev/sda";
  24.  
  25. networking.hostName = "Practice2"; # Define your hostname.
  26. networking.wireless.enable = true; # Enables Wireless.
  27.  
  28. # Add filesystem entries for each partition that you want to see
  29. # mounted at boot time. This should include at least the root
  30. # filesystem.
  31. fileSystems =
  32. [ { mountPoint = "/";
  33. device = "/dev/disk/by-label/Category2";
  34. }
  35.  
  36. # { mountPoint = "/data"; # where you want to mount the device
  37. # device = "/dev/sdb"; # the device
  38. # fsType = "ext3"; # the type of the partition
  39. # options = "data=journal";
  40. # }
  41. ];
  42.  
  43. # List swap partitions activated at boot time.
  44. swapDevices =
  45. [ { device = "/dev/disk/by-label/swap"; }
  46. ];
  47.  
  48. # Select internationalisation properties.
  49. i18n = {
  50. consoleFont = "lat9w-16";
  51. consoleKeyMap = "us";
  52. defaultLocale = "en_US.UTF-8";
  53. };
  54.  
  55. # List services that you want to enable:
  56.  
  57. # Enable the OpenSSH daemon.
  58. services.openssh.enable = true;
  59.  
  60. # Enable CUPS to print documents.
  61. services.printing.enable = true;
  62.  
  63. # Enable the X11 windowing system.
  64. services.xserver.enable = true;
  65. services.xserver.layout = "us";
  66. services.xserver.xkbOptions = "eurosign:e";
  67.  
  68. services.xserver.autorun = true;
  69. #services.xserver.desktopManager.default = "slim";
  70. #services.xserver.displayManager.job.logsXsession = true;
  71. # services.xserver.desktopManager.job.execCmd = /nix/store/...slim/bin/slim;
  72.  
  73. # double check, these should already be set
  74. # services.xserver.displayManager.slim.enable = true;
  75. # services.xserver.virtualScreen = { x=1280; y=800; };
  76.  
  77. # Enable the KDE Desktop Environment.
  78. # services.xserver.displayManager.kdm.enable = true;
  79. # services.xserver.desktopManager.kde4.enable = true;
  80.  
  81. # hardware.enableAllFirmware = true;
  82.  
  83.  
  84. # virtualisation.xen.enable=true;
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement