summaryrefslogtreecommitdiff
path: root/nix/systems
diff options
context:
space:
mode:
Diffstat (limited to 'nix/systems')
-rw-r--r--nix/systems/rpi-zero/default.nix22
-rw-r--r--nix/systems/rpi-zero/home.nix7
-rw-r--r--nix/systems/spontaneity/default.nix7
3 files changed, 32 insertions, 4 deletions
diff --git a/nix/systems/rpi-zero/default.nix b/nix/systems/rpi-zero/default.nix
new file mode 100644
index 0000000..f0e4dec
--- /dev/null
+++ b/nix/systems/rpi-zero/default.nix
@@ -0,0 +1,22 @@
+{ lib, config, home-manager, ... }:
+{
+ imports = [
+ ../common.nix
+ ];
+ config = {
+ zramSwap = {
+ enable = true;
+ algorithm = "zstd";
+ memoryPercent = 100;
+ };
+ boot.loader.grub.enable = false;
+ boot.loader.generic-extlinux-compatible.enable = true;
+ monorepo = {
+ vars.device = "/dev/mmcblk0";
+ profiles = {
+ server.enable = false;
+ ttyonly.enable = true;
+ };
+ };
+ };
+}
diff --git a/nix/systems/rpi-zero/home.nix b/nix/systems/rpi-zero/home.nix
new file mode 100644
index 0000000..205ea02
--- /dev/null
+++ b/nix/systems/rpi-zero/home.nix
@@ -0,0 +1,7 @@
+{ lib, config, pkgs, ... }:
+{
+ imports = [
+ ../home-common.nix
+ ];
+ config.monorepo.profiles.enable = false;
+}
diff --git a/nix/systems/spontaneity/default.nix b/nix/systems/spontaneity/default.nix
index 9f33555..a7e78fc 100644
--- a/nix/systems/spontaneity/default.nix
+++ b/nix/systems/spontaneity/default.nix
@@ -35,12 +35,11 @@
systemd.network.networks."40-ens3" = {
matchConfig.Name = "ens3";
networkConfig = {
- # This is the magic combo for Vultr:
- IPv6AcceptRA = true; # Accept routes (so we know where the internet is)
- IPv6PrivacyExtensions = false; # No random privacy IPs
+ IPv6AcceptRA = true;
+ IPv6PrivacyExtensions = false;
};
ipv6AcceptRAConfig = {
- UseAutonomousPrefix = false; # Do NOT generate an IP address from the RA
+ UseAutonomousPrefix = false;
};
};
networking = {