Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.29 KB | None | 0 0
  1. ##CONFIG
  2. {config, pkgs, ...}:
  3.  
  4. {
  5. require = [ ./hardware-configuration.nix ];
  6.  
  7. # Specify all kernel modules that are necessary for mounting the root
  8. # file system.
  9. boot.initrd.kernelModules = ["ext4" "ata_piix"];
  10. boot.blacklistedKernelModules = [ "snd_pcsp" ];
  11. boot.extraModprobeConfig = "options psmouse proto=imps";
  12.  
  13. boot.loader.grub = {
  14. enable = true;
  15. version = 2;
  16. device = "/dev/sda";
  17. };
  18.  
  19. networking = {
  20. hostName = "satori";
  21. interfaceMonitor.enable = true; # Watch for plugged cable.
  22. enableWLAN = true; # Enables Wireless.
  23. wicd.enable = true;
  24. #this is true by default
  25. useDHCP = true;
  26. nameservers = [
  27. "8.8.8.8"
  28. "8.8.4.4"
  29. # "68.87.74.166"
  30. # "68.87.68.166"
  31. ];
  32. };
  33.  
  34. hardware.bluetooth.enable = false;
  35.  
  36. # Add file system entries for each partition that you want to see mounted
  37. # at boot time. You can add filesystems which are not mounted at boot by
  38. # adding the noauto option.
  39. fileSystems = [
  40. { mountPoint = "/";
  41. device = "/dev/sda1";
  42. fsType = "ext4";
  43. options = "defaults";
  44. neededForBoot = true;
  45. }
  46.  
  47. { mountPoint = "/home";
  48. device = "/dev/sda2";
  49. fsType = "ext4";
  50. options = "data=journal";
  51. neededForBoot = true;
  52. }
  53. ];
  54.  
  55. #NO SWAP :D
  56. swapDevices = [];
  57.  
  58. # Select internationalisation properties.
  59. i18n = {
  60. consoleFont = "lat9w-16";
  61. consoleKeyMap = "us";
  62. defaultLocale = "en_US.UTF-8";
  63. };
  64.  
  65. #Power Management
  66. powerManagement.enable = true;
  67.  
  68. #List services that you want to enable:
  69.  
  70. #Add an OpenSSH daemon.
  71. services.openssh.enable = false;
  72.  
  73. # Add CUPS to print documents.
  74. services.printing.enable = true;
  75.  
  76. # Add XServer (default if you have used a graphical iso)
  77. services.xserver = {
  78. enable = true;
  79. layout = "us";
  80. #Already in hardware-configuration.nix
  81. #videoDriver= "nvidia";
  82. resolutions = [
  83. {x = 1280; y = 1024;}
  84. {x =1024; y =768;}
  85. {x =800; y =600;}
  86. {x =640; y =480;}
  87. ];
  88. displayManager.slim.enable = true;
  89. #windowManager.compiz.enable = true;
  90. desktopManager.xfce.enable = true;
  91. xkbModel = "pc105";
  92. monitorSection.default = "Modeline \"1280x720@60\" 73.78 1280 1312 1592 1624 720 735 742 757";
  93. };
  94.  
  95. # Add the NixOS Manual on virtual console 8
  96. services.nixosManual.showManual = true;
  97.  
  98. #Disable pulseaudio because it will run as root
  99. #KDE will run it as user
  100. #services.pulseaudio.enable = false;
  101.  
  102. #Enable ntp
  103. services.ntp = {
  104. enable = true;
  105. servers = [
  106. "0.north-america.pool.ntp.org"
  107. "1.north-america.pool.ntp.org"
  108. "2.north-america.pool.ntp.org"
  109. "3.north-america.pool.ntp.org"
  110. ];
  111. };
  112.  
  113. time.timeZone = "America/New_York";
  114. }
  115.  
  116. ##END CONFIG
  117. building Nix...
  118. building the system configuration...
  119. error: while evaluating the builtin function `derivationStrict':
  120. while instantiating the derivation named `system' at `/etc/nixos/nixos/modules/system/activation/top-level.nix:146:5':
  121. while evaluating the derivation attribute `buildCommand' at `/etc/nixos/nixos/modules/system/activation/top-level.nix:147:5':
  122. while evaluating the builtin function `derivationStrict':
  123. while instantiating the derivation named `etc' at `/etc/nixos/nixos/modules/system/etc/etc.nix:41:5':
  124. while evaluating the derivation attribute `sources' at `/etc/nixos/nixos/modules/system/etc/etc.nix:46:5':
  125. while evaluating the builtin function `derivationStrict':
  126. while instantiating the derivation named `upstart-xserver.conf' at `/etc/nixos/nixpkgs/pkgs/build-support/trivial-builders.nix:10:14':
  127. while evaluating the derivation attribute `jobText' at `/etc/nixos/nixos/modules/system/upstart/upstart.nix:111:43':
  128. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/strings.nix:18:25':
  129. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:17:19':
  130. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/strings.nix:14:32':
  131. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:17:19':
  132. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/strings.nix:14:32':
  133. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:17:19':
  134. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/strings.nix:14:32':
  135. while evaluating the builtin function `head':
  136. while evaluating the function at `/etc/nixos/nixos/modules/system/upstart/upstart.nix:44:31':
  137. while evaluating the builtin function `derivationStrict':
  138. while instantiating the derivation named `slim.cfg' at `/etc/nixos/nixpkgs/pkgs/build-support/trivial-builders.nix:10:14':
  139. while evaluating the derivation attribute `text' at `/etc/nixos/nixpkgs/pkgs/build-support/trivial-builders.nix:21:29':
  140. while evaluating the attribute `xserverArgs' at `/etc/nixos/nixpkgs/pkgs/lib/attrsets.nix:108:41':
  141. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/modules.nix:191:43':
  142. while evaluating the attribute `result' at `/etc/nixos/nixpkgs/pkgs/lib/modules.nix:303:11':
  143. while evaluating the builtin function `addErrorContext':
  144.  
  145. while evaluating the option `services.xserver.displayManager.xserverArgs':
  146. The error may come from the following files:
  147. /etc/nixos/nixos/modules/services/x11/xserver.nix
  148. /etc/nixos/nixos/modules/services/x11/display-managers/default.nix
  149.  
  150. while evaluating the builtin function `toString':
  151. while evaluating the builtin function `derivationStrict':
  152. while instantiating the derivation named `xserver.conf' at `/etc/nixos/nixos/modules/services/x11/xserver.nix:55:5':
  153. while evaluating the derivation attribute `config' at `/etc/nixos/nixos/modules/services/x11/xserver.nix:60:18':
  154. while evaluating the attribute `config' at `/etc/nixos/nixpkgs/pkgs/lib/attrsets.nix:108:41':
  155. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/modules.nix:191:43':
  156. while evaluating the attribute `result' at `/etc/nixos/nixpkgs/pkgs/lib/modules.nix:303:11':
  157. while evaluating the builtin function `addErrorContext':
  158.  
  159. while evaluating the option `services.xserver.config':
  160. The error may come from the following files:
  161. /etc/nixos/nixos/modules/services/x11/xserver.nix
  162. /etc/nixos/nixos/modules/services/x11/hardware/wacom.nix
  163. /etc/nixos/nixos/modules/services/x11/hardware/synaptics.nix
  164.  
  165. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/trivial.nix:4:8':
  166. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/modules.nix:121:26':
  167. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:124:20':
  168. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:50:18':
  169. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:17:19':
  170. while evaluating the builtin function `addErrorContext':
  171. while evaluating properties:
  172. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:152:33':
  173. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:17:19':
  174. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/misc.nix:170:17':
  175. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:17:19':
  176. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:134:25':
  177. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:50:18':
  178. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:17:19':
  179. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:51:14':
  180. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:135:13':
  181. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:20:14':
  182. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/types.nix:13:12':
  183. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/types.nix:12:13':
  184. while evaluating the builtin function `isAttrs':
  185. while evaluating the builtin function `head':
  186. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:141:27':
  187. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:48:27':
  188. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:35:16':
  189. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/types.nix:13:12':
  190. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/types.nix:12:13':
  191. while evaluating the builtin function `isAttrs':
  192. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/attrsets.nix:41:16':
  193. while evaluating the builtin function `getAttr':
  194. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:75:16':
  195. while evaluating the builtin function `addErrorContext':
  196. while moving properties on the attribute `config':
  197. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:101:40':
  198. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:17:19':
  199. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/misc.nix:170:17':
  200. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:48:27':
  201. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:105:35':
  202. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:48:27':
  203. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:35:16':
  204. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/types.nix:13:12':
  205. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/types.nix:12:13':
  206. while evaluating the builtin function `isAttrs':
  207. while evaluating the attribute `content' at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:51:9':
  208. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:48:27':
  209. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:35:16':
  210. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/types.nix:13:12':
  211. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/types.nix:12:13':
  212. while evaluating the builtin function `isAttrs':
  213. while evaluating the attribute `content' at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:51:9':
  214. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:48:27':
  215. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:180:22':
  216. while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/attrsets.nix:41:16':
  217. while evaluating the builtin function `getAttr':
  218. cannot coerce an attribute set (except a derivation) to a string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement