aboutsummaryrefslogtreecommitdiff
path: root/roots
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2020-06-04 20:32:59 +0200
committerKatharina Fey <kookie@spacekookie.de>2020-06-04 20:32:59 +0200
commitb47d3a67827e428f19b87903966af39e5ebead3e (patch)
tree998fbbbc828a13c51e1e18d0d2925cb572ded3ba /roots
parent82581f23251dcd1f356ed83220143a090da655d1 (diff)
roots: adding zfs snapshotting
Diffstat (limited to 'roots')
-rw-r--r--roots/tempest.nix5
-rw-r--r--roots/virt/README6
-rw-r--r--roots/virt/transmission.nix10
3 files changed, 20 insertions, 1 deletions
diff --git a/roots/tempest.nix b/roots/tempest.nix
index 04c4629406b..40a6aa91568 100644
--- a/roots/tempest.nix
+++ b/roots/tempest.nix
@@ -42,6 +42,8 @@
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [];
+
+ services.zfs.autoSnapshot.enable = true;
fileSystems."/" = {
device = "zroot";
@@ -65,7 +67,8 @@
## From Mass Effect: Andromeda
networking.hostName = "tempest";
networking.hostId = "01fd342c";
-
+ networking.firewall.allowedTCPPorts = [ 9000 ];
+
networking.useDHCP = false;
networking.interfaces.enp7s0.useDHCP = true;
diff --git a/roots/virt/README b/roots/virt/README
new file mode 100644
index 00000000000..dc47b816aca
--- /dev/null
+++ b/roots/virt/README
@@ -0,0 +1,6 @@
+# Virtual Roots
+
+This directory contains virtual device configurations, such as VMs,
+containers, and build utilities. Some are meant for desktop use,
+others to run on a server. Usage is documented in the head comment of
+each file. \ No newline at end of file
diff --git a/roots/virt/transmission.nix b/roots/virt/transmission.nix
new file mode 100644
index 00000000000..1b92c4e7f9c
--- /dev/null
+++ b/roots/virt/transmission.nix
@@ -0,0 +1,10 @@
+/* VIRTUAL DEVICE CONFIGURATION FOR
+ *
+ * transmission-cli & mulvad
+ *
+ * This file only contains settings that are specific to this one
+ * device (hardware and things outside of nix, like partitions).
+ *
+ * This file is part of LIBKOOKIE, a collection of nix expressions.
+ * LIBKOOKIE is licensed under the GPL-3.0 (or later) -- see LICENSE
+ */