From 9429674b54d9cf761a5c38b7d10208bba22ae2f5 Mon Sep 17 00:00:00 2001 From: chn Date: Sun, 7 Jul 2024 14:55:03 +0800 Subject: [PATCH] devices.xmupc2: add archive directories --- devices/xmupc2/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/devices/xmupc2/default.nix b/devices/xmupc2/default.nix index e1f42581..f8c33def 100644 --- a/devices/xmupc2/default.nix +++ b/devices/xmupc2/default.nix @@ -77,5 +77,12 @@ inputs: bugs = [ "xmunet" ]; user.users = [ "chn" "xll" "zem" "yjq" "gb" ]; }; + environment.persistence."/nix/archive" = + { + hideMounts = true; + users.chn.directories = builtins.map + (dir: { directory = "repo/${dir}"; user = "chn"; group = "chn"; mode = "0755"; }) + [ "lammps-SiC" "linwei-stuff" ]; + }; }; }