summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--machines/moissanite/default.nix1
-rw-r--r--modules/arm.nix19
2 files changed, 20 insertions, 0 deletions
diff --git a/machines/moissanite/default.nix b/machines/moissanite/default.nix
index 8a306d5..d41cb6f 100644
--- a/machines/moissanite/default.nix
+++ b/machines/moissanite/default.nix
@@ -3,6 +3,7 @@
 {
   imports = [
     ../../modules/common.nix
+    ../../modules/arm.nix
 
     ./hardware.nix
     ./devices.nix
diff --git a/modules/arm.nix b/modules/arm.nix
new file mode 100644
index 0000000..ac688df
--- /dev/null
+++ b/modules/arm.nix
@@ -0,0 +1,19 @@
+{
+  me,
+  lib,
+  pkgs,
+  ...
+}:
+
+assert lib.assertMsg (
+  me.system == "aarch64-linux"
+) "arm module included on non-arm (${me.system}) architecture.";
+{
+  # non-machine specific arm package selection.
+  # used to include replacements for necessary programs with no
+  # default support for aarch64. (i.e. discord)
+
+  environment.systemPackages = with pkgs; [
+    equibop # discord
+  ];
+}