From 2c93bbbadff6642a11768c2768f1b51e17ace3e2 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Wed, 10 Jan 2024 21:39:55 +0100 Subject: [PATCH] zfs/panorama: init --- hosts/eple/default.nix | 4 ++++ profiles/mounts/panorama-zfs.nix | 11 +++++++++++ 2 files changed, 15 insertions(+) create mode 100644 profiles/mounts/panorama-zfs.nix diff --git a/hosts/eple/default.nix b/hosts/eple/default.nix index 051cb4e..e00bd24 100644 --- a/hosts/eple/default.nix +++ b/hosts/eple/default.nix @@ -13,6 +13,8 @@ ../../users/pbsds + ../../profiles/mounts/panorama-zfs.nix + ../../profiles/shell/base.nix ../../profiles/shell/archives.nix ../../profiles/shell/nix-utils.nix @@ -25,6 +27,8 @@ ]; services.domeneshop-updater.targets = [ config.networking.fqdn ]; + networking.hostId = "43c43ded"; # needed for zfs: head -c 8 /etc/machine-id + # Networking networking.networkmanager.enable = true; diff --git a/profiles/mounts/panorama-zfs.nix b/profiles/mounts/panorama-zfs.nix new file mode 100644 index 0000000..415ca41 --- /dev/null +++ b/profiles/mounts/panorama-zfs.nix @@ -0,0 +1,11 @@ +{ config, pkgs, lib, ... }: +{ + # https://search.nixos.org/options?query=services.zfs + + imports = [ ./common-zfs.nix ]; + + # non legacy-mount + systemd.services.zfs-mount.enable = true; # default + boot.zfs.extraPools = [ "Panorama" ]; # import on boot + +}