diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-04-01 18:31:48 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-04-01 18:31:48 +0200 |
commit | 99f59ffb8c2fc5069c636cdbf589cf27f5a85ec6 (patch) | |
tree | 156d9026623bbcddd956d3ed9de5259ed42c3ee1 /machines | |
parent | 55ec3a129010158af186fedaaa3f95c72d97c99e (diff) |
labtop: Merge hardware config into one labtop.nix.
This reverts the split up of the config from 55ec3a1 and puts all the stuff from the hardware configuration file into the main config. The reason for this is that vuizvui is structured so that the machine definition *IS* the actual hardware configuration which deviates from a common profile. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'machines')
-rw-r--r-- | machines/labnet/labtop.nix (renamed from machines/labnet/labtop/configuration.nix) | 33 | ||||
-rw-r--r-- | machines/labnet/labtop/hardware-configuration.nix | 26 |
2 files changed, 25 insertions, 34 deletions
diff --git a/machines/labnet/labtop/configuration.nix b/machines/labnet/labtop.nix index b1d54b2a..1c23cd69 100644 --- a/machines/labnet/labtop/configuration.nix +++ b/machines/labnet/labtop.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: let greybird = pkgs.stdenv.mkDerivation { @@ -24,8 +24,13 @@ let }; in { - imports = [ - ./hardware-configuration.nix + imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ]; + + boot.loader.grub.device = "/dev/sda"; # FIXME: Device ID + + boot.kernelModules = [ "kvm-intel" ]; + boot.initrd.availableKernelModules = [ + "uhci_hcd" "ehci_pci" "ata_piix" "firewire_ohci" "usb_storage" ]; i18n = { @@ -34,8 +39,10 @@ in { defaultLocale = "de_DE.UTF-8"; }; - fileSystems."/".label = "root"; - boot.loader.grub.device = "/dev/sda"; + fileSystems."/" = { + device = "/dev/disk/by-uuid/754fd3e3-2e04-4028-9363-0c6bb4c54367"; + fsType = "ext4"; + }; environment.systemPackages = with pkgs; [ greybird @@ -57,6 +64,8 @@ in { wget ]; + hardware.trackpoint.emulateWheel = true; + # TODO: Needed for slic3r right now. nixpkgs.config.allowBroken = true; @@ -71,6 +80,9 @@ in { services.openssh.enable = true; networking.networkmanager.enable = true; + networking.enableIntel3945ABGFirmware = true; + + nix.maxJobs = 2; users.mutableUsers = false; users.extraUsers.openlab = { @@ -78,9 +90,14 @@ in { isNormalUser = true; password = "openlab"; extraGroups = [ "wheel" "networkmanager" ]; - openssh.authorizedKeys.keys = [ - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJhthfk38lzDvoI7lPqRneI0yBpZEhLDGRBpcXzpPSu+V0YlgrDix5fHhBl+EKfw4aeQNvQNuAky3pDtX+BDK1b7idbz9ZMCExy2a1kBKDVJz/onLSQxiiZMuHlAljVj9iU4uoTOxX3vB85Ok9aZtMP1rByRIWR9e81/km4HdfZTCjFVRLWfvo0s29H7l0fnbG9bb2E6kydlvjnXJnZFXX+KUM16X11lK53ilPdPJdm87VtxeSKZ7GOiBz6q7FHzEd2Zc3CnzgupQiXGSblXrlN22IY3IWfm5S/8RTeQbMLVoH0TncgCeenXH7FU/sXD79ypqQV/WaVVDYMOirsnh/ philip@nyx" - ]; + openssh.authorizedKeys.keys = lib.singleton (lib.concatStrings [ + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJhthfk38lzDvoI7lPqRneI0yBpZEhLD" + "GRBpcXzpPSu+V0YlgrDix5fHhBl+EKfw4aeQNvQNuAky3pDtX+BDK1b7idbz9ZMCExy2a1" + "kBKDVJz/onLSQxiiZMuHlAljVj9iU4uoTOxX3vB85Ok9aZtMP1rByRIWR9e81/km4HdfZT" + "CjFVRLWfvo0s29H7l0fnbG9bb2E6kydlvjnXJnZFXX+KUM16X11lK53ilPdPJdm87VtxeS" + "KZ7GOiBz6q7FHzEd2Zc3CnzgupQiXGSblXrlN22IY3IWfm5S/8RTeQbMLVoH0TncgCeenX" + "H7FU/sXD79ypqQV/WaVVDYMOirsnh/ philip@nyx" + ]); }; # fix for emacs diff --git a/machines/labnet/labtop/hardware-configuration.nix b/machines/labnet/labtop/hardware-configuration.nix deleted file mode 100644 index 2791d3a9..00000000 --- a/machines/labnet/labtop/hardware-configuration.nix +++ /dev/null @@ -1,26 +0,0 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, ... }: - -{ - imports = - [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> - ]; - - boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ata_piix" "firewire_ohci" "usb_storage" ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "/dev/disk/by-uuid/754fd3e3-2e04-4028-9363-0c6bb4c54367"; - fsType = "ext4"; - }; - - hardware.trackpoint.emulateWheel = true; - - swapDevices = [ ]; - - nix.maxJobs = 2; - networking.enableIntel3945ABGFirmware = true; -} |