daemon tests for gotosocial
This commit is contained in:
parent
7f4a5a35ca
commit
ccd37ee169
7 changed files with 201 additions and 129 deletions
|
|
@ -50,16 +50,11 @@
|
|||
requiredBy = [ "multi-user.target" ];
|
||||
after = [ "default.target" ];
|
||||
script = ''
|
||||
if [[ -e /etc/nixos/hardware-configuration.nix ]]; then
|
||||
echo "install-dynix: configuration already copied; nothing to do"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
nix profile install -vv "${dynix.drvPath}^*" # "
|
||||
|
||||
mkdir -vp /etc/nixos
|
||||
nixos-generate-config
|
||||
cp -rv --dereference /run/current-system/sw/share/nixos/*.nix /etc/nixos/
|
||||
cp -rvf --dereference /run/current-system/sw/share/nixos/*.nix /etc/nixos/
|
||||
if ! [[ -e /etc/nixos/dynix-vm-configuration.nix ]]; then
|
||||
echo "FAILURE"
|
||||
echo "FAILURE" >&2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue