mirror of
https://github.com/ryantm/agenix.git
synced 2024-08-17 01:50:24 +03:00
Compare commits
4 Commits
fdcced85ee
...
da4c0acaf0
Author | SHA1 | Date | |
---|---|---|---|
|
da4c0acaf0 | ||
|
c2fc0762bb | ||
|
1746e4f5ec | ||
|
e5d4435cf1 |
@ -211,6 +211,7 @@ in {
|
||||
systemd.user.services.agenix = lib.mkIf pkgs.stdenv.hostPlatform.isLinux {
|
||||
Unit = {
|
||||
Description = "agenix activation";
|
||||
After = "basic.target" # “basic boot-up,” includes impermanence's bind mounts
|
||||
};
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
|
@ -30,9 +30,13 @@ in
|
||||
shellcheck ${bin}
|
||||
${bin} -h | grep ${version}
|
||||
|
||||
HOME=$(mktemp -d 2>/dev/null || mktemp -d -t 'mytmpdir')
|
||||
test_tmp=$(mktemp -d 2>/dev/null || mktemp -d -t 'mytmpdir')
|
||||
export HOME="$test_tmp/home"
|
||||
export NIX_STORE_DIR="$test_tmp/nix/store"
|
||||
export NIX_STATE_DIR="$test_tmp/nix/var"
|
||||
mkdir -p "$HOME" "$NIX_STORE_DIR" "$NIX_STATE_DIR"
|
||||
function cleanup {
|
||||
rm -rf $HOME
|
||||
rm -rf "$test_tmp"
|
||||
}
|
||||
trap "cleanup" 0 2 3 15
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user