about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2018-04-12 15:17:25 +0200
committeraszlig <aszlig@nix.build>2018-04-12 15:20:13 +0200
commit73611120dd35affb0f7d69aaca0dfcb5cea14003 (patch)
tree798aa78ffb97fced7d8b370a730dbc7ad2c7f298 /machines
parentf19c7b3f65f792cc9ac40a3347fb69c4d407aa45 (diff)
machines: Add new machine "shakti"
This is only a placeholder right now so we get Hydra builds.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'machines')
-rw-r--r--machines/aszlig/managed/shakti.nix39
-rw-r--r--machines/default.nix1
2 files changed, 40 insertions, 0 deletions
diff --git a/machines/aszlig/managed/shakti.nix b/machines/aszlig/managed/shakti.nix
new file mode 100644
index 00000000..e1de8bf2
--- /dev/null
+++ b/machines/aszlig/managed/shakti.nix
@@ -0,0 +1,39 @@
+# FIXME: Currently just a placeholder to get Hydra builds.
+{ pkgs, lib, ... }:
+
+{
+  boot.initrd.availableKernelModules = [ "usbhid" ];
+  boot.kernelModules = [ "kvm-amd" ];
+
+  environment.systemPackages = with pkgs; [
+    mosh wget krita gphoto2 digikam
+  ];
+
+  # TODO: fileSystems."/boot".device = "/dev/disk/by-uuid/XXX";
+  # TODO: fileSystems."/boot".fsType = "vfat";
+
+  fileSystems."/".label = "shakti-root";
+  fileSystems."/".fsType = "btrfs";
+  fileSystems."/".options = [
+    "compress=zstd"
+    "noatime"
+    "space_cache"
+  ];
+
+  swapDevices = lib.singleton {
+    label = "tyree-swap";
+  };
+
+  networking.hostName = "shakti";
+  networking.useNetworkd = true;
+
+  hardware.cpu.amd.updateMicrocode = true;
+
+  nix.maxJobs = 4;
+
+  services.xserver.xkbOptions = "eurosign:e,caps:none";
+  services.xserver.libinput.enable = true;
+
+  vuizvui.user.aszlig.profiles.managed.enable = true;
+  vuizvui.user.aszlig.profiles.managed.mainUser = "aortab";
+}
diff --git a/machines/default.nix b/machines/default.nix
index 840d42c4..d076f505 100644
--- a/machines/default.nix
+++ b/machines/default.nix
@@ -8,6 +8,7 @@ with import ../lib;
     tishtushi = callMachine ./aszlig/tishtushi.nix {};
     managed = {
       brawndo = callMachine ./aszlig/managed/brawndo.nix {};
+      shakti  = callMachine ./aszlig/managed/shakti.nix {};
       tyree   = callMachine ./aszlig/managed/tyree.nix {};
     };
   };