kilgharrah: set up zfs datasets using randomcat's module

This commit is contained in:
Katherina Walshe-Grey 2024-09-24 04:49:25 +01:00
parent 7e1f688699
commit 2951f948b4
4 changed files with 21 additions and 7 deletions

View file

@ -0,0 +1,12 @@
{ config, lib, pkgs, ... }:
{
environment.etc.crypttab.text = ''
albion UUID=acda0e7a-069f-47c7-8e37-ec00e7cdde0f /root/luks-albion.key
'';
randomcat.services.zfs.datasets = {
"rpool_albion/data" = { mountpoint = "none"; };
"rpool_albion/data/steam" = { mountpoint = "/home/qenya/.local/share/Steam"; };
};
}

View file

@ -6,6 +6,8 @@
./filesystems.nix
./hardware.nix
./networking.nix
./datasets.nix
];
nixpkgs.hostPlatform = "x86_64-linux";

View file

@ -5,12 +5,6 @@
"cryptroot".device = "/dev/disk/by-uuid/b414aaba-0a36-4135-a7e1-dc9489286acd";
};
boot.supportedFilesystems = [ "zfs" ];
environment.etc.crypttab.text = ''
cryptstorage UUID=acda0e7a-069f-47c7-8e37-ec00e7cdde0f /root/luks-albion.key
'';
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/ad4cbc18-8849-40ed-b0bf-097f8f46346b";