Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##CONFIG
- {config, pkgs, ...}:
- {
- require = [ ./hardware-configuration.nix ];
- # Specify all kernel modules that are necessary for mounting the root
- # file system.
- boot.initrd.kernelModules = ["ext4" "ata_piix"];
- boot.blacklistedKernelModules = [ "snd_pcsp" ];
- boot.extraModprobeConfig = "options psmouse proto=imps";
- boot.loader.grub = {
- enable = true;
- version = 2;
- device = "/dev/sda";
- };
- networking = {
- hostName = "satori";
- interfaceMonitor.enable = true; # Watch for plugged cable.
- enableWLAN = true; # Enables Wireless.
- wicd.enable = true;
- #this is true by default
- useDHCP = true;
- nameservers = [
- "8.8.8.8"
- "8.8.4.4"
- # "68.87.74.166"
- # "68.87.68.166"
- ];
- };
- hardware.bluetooth.enable = false;
- # Add file system entries for each partition that you want to see mounted
- # at boot time. You can add filesystems which are not mounted at boot by
- # adding the noauto option.
- fileSystems = [
- { mountPoint = "/";
- device = "/dev/sda1";
- fsType = "ext4";
- options = "defaults";
- neededForBoot = true;
- }
- { mountPoint = "/home";
- device = "/dev/sda2";
- fsType = "ext4";
- options = "data=journal";
- neededForBoot = true;
- }
- ];
- #NO SWAP :D
- swapDevices = [];
- # Select internationalisation properties.
- i18n = {
- consoleFont = "lat9w-16";
- consoleKeyMap = "us";
- defaultLocale = "en_US.UTF-8";
- };
- #Power Management
- powerManagement.enable = true;
- #List services that you want to enable:
- #Add an OpenSSH daemon.
- services.openssh.enable = false;
- # Add CUPS to print documents.
- services.printing.enable = true;
- # Add XServer (default if you have used a graphical iso)
- services.xserver = {
- enable = true;
- layout = "us";
- #Already in hardware-configuration.nix
- #videoDriver= "nvidia";
- resolutions = [
- {x = 1280; y = 1024;}
- {x =1024; y =768;}
- {x =800; y =600;}
- {x =640; y =480;}
- ];
- displayManager.slim.enable = true;
- #windowManager.compiz.enable = true;
- desktopManager.xfce.enable = true;
- xkbModel = "pc105";
- monitorSection.default = "Modeline \"1280x720@60\" 73.78 1280 1312 1592 1624 720 735 742 757";
- };
- # Add the NixOS Manual on virtual console 8
- services.nixosManual.showManual = true;
- #Disable pulseaudio because it will run as root
- #KDE will run it as user
- #services.pulseaudio.enable = false;
- #Enable ntp
- services.ntp = {
- enable = true;
- servers = [
- "0.north-america.pool.ntp.org"
- "1.north-america.pool.ntp.org"
- "2.north-america.pool.ntp.org"
- "3.north-america.pool.ntp.org"
- ];
- };
- time.timeZone = "America/New_York";
- }
- ##END CONFIG
- building Nix...
- building the system configuration...
- error: while evaluating the builtin function `derivationStrict':
- while instantiating the derivation named `system' at `/etc/nixos/nixos/modules/system/activation/top-level.nix:146:5':
- while evaluating the derivation attribute `buildCommand' at `/etc/nixos/nixos/modules/system/activation/top-level.nix:147:5':
- while evaluating the builtin function `derivationStrict':
- while instantiating the derivation named `etc' at `/etc/nixos/nixos/modules/system/etc/etc.nix:41:5':
- while evaluating the derivation attribute `sources' at `/etc/nixos/nixos/modules/system/etc/etc.nix:46:5':
- while evaluating the builtin function `derivationStrict':
- while instantiating the derivation named `upstart-xserver.conf' at `/etc/nixos/nixpkgs/pkgs/build-support/trivial-builders.nix:10:14':
- while evaluating the derivation attribute `jobText' at `/etc/nixos/nixos/modules/system/upstart/upstart.nix:111:43':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/strings.nix:18:25':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:17:19':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/strings.nix:14:32':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:17:19':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/strings.nix:14:32':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:17:19':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/strings.nix:14:32':
- while evaluating the builtin function `head':
- while evaluating the function at `/etc/nixos/nixos/modules/system/upstart/upstart.nix:44:31':
- while evaluating the builtin function `derivationStrict':
- while instantiating the derivation named `slim.cfg' at `/etc/nixos/nixpkgs/pkgs/build-support/trivial-builders.nix:10:14':
- while evaluating the derivation attribute `text' at `/etc/nixos/nixpkgs/pkgs/build-support/trivial-builders.nix:21:29':
- while evaluating the attribute `xserverArgs' at `/etc/nixos/nixpkgs/pkgs/lib/attrsets.nix:108:41':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/modules.nix:191:43':
- while evaluating the attribute `result' at `/etc/nixos/nixpkgs/pkgs/lib/modules.nix:303:11':
- while evaluating the builtin function `addErrorContext':
- while evaluating the option `services.xserver.displayManager.xserverArgs':
- The error may come from the following files:
- /etc/nixos/nixos/modules/services/x11/xserver.nix
- /etc/nixos/nixos/modules/services/x11/display-managers/default.nix
- while evaluating the builtin function `toString':
- while evaluating the builtin function `derivationStrict':
- while instantiating the derivation named `xserver.conf' at `/etc/nixos/nixos/modules/services/x11/xserver.nix:55:5':
- while evaluating the derivation attribute `config' at `/etc/nixos/nixos/modules/services/x11/xserver.nix:60:18':
- while evaluating the attribute `config' at `/etc/nixos/nixpkgs/pkgs/lib/attrsets.nix:108:41':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/modules.nix:191:43':
- while evaluating the attribute `result' at `/etc/nixos/nixpkgs/pkgs/lib/modules.nix:303:11':
- while evaluating the builtin function `addErrorContext':
- while evaluating the option `services.xserver.config':
- The error may come from the following files:
- /etc/nixos/nixos/modules/services/x11/xserver.nix
- /etc/nixos/nixos/modules/services/x11/hardware/wacom.nix
- /etc/nixos/nixos/modules/services/x11/hardware/synaptics.nix
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/trivial.nix:4:8':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/modules.nix:121:26':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:124:20':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:50:18':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:17:19':
- while evaluating the builtin function `addErrorContext':
- while evaluating properties:
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:152:33':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:17:19':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/misc.nix:170:17':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:17:19':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:134:25':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:50:18':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:17:19':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:51:14':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:135:13':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:20:14':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/types.nix:13:12':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/types.nix:12:13':
- while evaluating the builtin function `isAttrs':
- while evaluating the builtin function `head':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:141:27':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:48:27':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:35:16':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/types.nix:13:12':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/types.nix:12:13':
- while evaluating the builtin function `isAttrs':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/attrsets.nix:41:16':
- while evaluating the builtin function `getAttr':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:75:16':
- while evaluating the builtin function `addErrorContext':
- while moving properties on the attribute `config':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:101:40':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/lists.nix:17:19':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/misc.nix:170:17':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:48:27':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:105:35':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:48:27':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:35:16':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/types.nix:13:12':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/types.nix:12:13':
- while evaluating the builtin function `isAttrs':
- while evaluating the attribute `content' at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:51:9':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:48:27':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:35:16':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/types.nix:13:12':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/types.nix:12:13':
- while evaluating the builtin function `isAttrs':
- while evaluating the attribute `content' at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:51:9':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:48:27':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/properties.nix:180:22':
- while evaluating the function at `/etc/nixos/nixpkgs/pkgs/lib/attrsets.nix:41:16':
- while evaluating the builtin function `getAttr':
- cannot coerce an attribute set (except a derivation) to a string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement