about summary refs log tree commit diff
path: root/machines/labnet/labtop.nix
blob: 099925fa8bcca7ba4e0bc8cd68544353a757bf18 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib }:
let
  callMachine = import ../../lib/call-machine.nix;
  mkLabtop = hostname: config: {
    imports = [ config ];
    vuizvui.user.openlab.labtops.enable = true;
    networking.hostName = hostname;
  };
  mkLabtops = lib.mapAttrs (name: cfg: callMachine (mkLabtop name cfg) {});

  labtop = {

    boot.kernelModules = [ "kvm-intel" ];
    boot.initrd.availableKernelModules = [
      "uhci_hcd" "ehci_pci" "ata_piix" "firewire_ohci" "usb_storage"
    ];

    vuizvui.hardware.thinkpad.enable = true;

    hardware.trackpoint.enable = false;

    networking.enableIntel3945ABGFirmware = true;


    users.users.kevin = {
      isNormalUser = true;
      password = "kevin";
    };
    users.users.root.password = "root";

  };


  hannswurscht = {
    nixpkgs.system = "i686-linux";
  };

in
  mkLabtops { inherit labtop hannswurscht; }