refactor: expose persistence dir as part of inputs
This commit is contained in:
parent
9a6c9bf84c
commit
261d239597
@ -16,10 +16,11 @@
|
|||||||
outputs = inputs @ { self, nixpkgs, impermanence, agenix, ... }:
|
outputs = inputs @ { self, nixpkgs, impermanence, agenix, ... }:
|
||||||
let
|
let
|
||||||
inputs.secrets = ./secrets;
|
inputs.secrets = ./secrets;
|
||||||
|
inputs.persist-dir = "/nix/persist";
|
||||||
defaults = {
|
defaults = {
|
||||||
config = {
|
config = {
|
||||||
environment.persistence = {
|
environment.persistence = {
|
||||||
"/nix/persist" = {
|
"${inputs.persist-dir}" = {
|
||||||
hideMounts = true;
|
hideMounts = true;
|
||||||
directories = [
|
directories = [
|
||||||
"/var/lib"
|
"/var/lib"
|
||||||
|
Loading…
Reference in New Issue
Block a user