refactor: expose persistence dir as part of inputs

This commit is contained in:
Price Hiller 2023-10-30 08:50:21 -05:00
parent 9a6c9bf84c
commit 261d239597
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -16,10 +16,11 @@
outputs = inputs @ { self, nixpkgs, impermanence, agenix, ... }:
let
inputs.secrets = ./secrets;
inputs.persist-dir = "/nix/persist";
defaults = {
config = {
environment.persistence = {
"/nix/persist" = {
"${inputs.persist-dir}" = {
hideMounts = true;
directories = [
"/var/lib"