From b47d3a67827e428f19b87903966af39e5ebead3e Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Thu, 4 Jun 2020 20:32:59 +0200 Subject: roots: adding zfs snapshotting --- roots/tempest.nix | 5 ++++- roots/virt/README | 6 ++++++ roots/virt/transmission.nix | 10 ++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 roots/virt/README create mode 100644 roots/virt/transmission.nix (limited to 'roots') 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 + */ -- cgit v1.2.3