about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2016-04-25 22:05:33 +0200
committerProfpatsch <mail@profpatsch.de>2016-04-25 22:05:33 +0200
commit13df9a126fe0aee07ba96d2e9b2e5dfbf36cd84d (patch)
tree4526d376c50176fe86e2bdf4fedc874f98d162ed /machines
parentef4a2006de91dd3c70315491a02b48639dce7e16 (diff)
machines/labtop: fix config merging & devices
Diffstat (limited to 'machines')
-rw-r--r--machines/labnet/labtop.nix17
1 files changed, 12 insertions, 5 deletions
diff --git a/machines/labnet/labtop.nix b/machines/labnet/labtop.nix
index 956b0377..4ac85b0e 100644
--- a/machines/labnet/labtop.nix
+++ b/machines/labnet/labtop.nix
@@ -2,13 +2,14 @@
 let
   callMachine = import ../../lib/call-machine.nix;
   mkLabtop = hostname: config: {
+    imports = [ config ];
     vuizvui.user.openlab.labtops.enable = true;
     networking.hostName = hostname;
-  } // config;
+  };
   mkLabtops = lib.mapAttrs (name: cfg: callMachine (mkLabtop name cfg) {});
 
   labtop = {
-    boot.loader.grub.device = "/dev/disk/by-id/ata-HITACHI_HTS722010K9SA00_080711DP0270DPGLVMPC";
+    boot.loader.grub.device = "/dev/sda";
 
     boot.kernelModules = [ "kvm-intel" ];
     boot.initrd.availableKernelModules = [
@@ -16,7 +17,7 @@ let
     ];
 
     fileSystems."/" = {
-      device = "/dev/disk/by-uuid/754fd3e3-2e04-4028-9363-0c6bb4c54367";
+      device = "/dev/sda1";
       fsType = "ext4";
     };
 
@@ -26,6 +27,13 @@ let
 
     networking.enableIntel3945ABGFirmware = true;
 
+
+    users.users.kevin = {
+      isNormalUser = true;
+      password = "kevin";
+    };
+    users.users.root.password = "root";
+
   };
 
 
@@ -34,10 +42,9 @@ let
     boot.loader.grub.device = "/dev/sda";
 
     fileSystems."/" = {
-      device = "/dev/sda";
+      device = "/dev/sda1";
       fsType = "ext4";
     };
-
   };
 
 in