Update env file locations

This commit is contained in:
Maciej Jur 2023-07-09 22:27:33 +02:00
parent deaf820e4a
commit c930879fb9
No known key found for this signature in database
GPG key ID: ADA3BF323198C639
2 changed files with 2 additions and 15 deletions

View file

@ -27,7 +27,7 @@
users.users.kamov = {
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keyFiles = [ /etc/nixos/ssh/kamov ];
openssh.authorizedKeys.keyFiles = [ /root/secrets/ssh/kamov.pub ];
};
environment.systemPackages = with pkgs; [
@ -84,7 +84,7 @@
containers = {
kotori = {
image = "kamov/kotori";
environmentFiles = [ "/etc/nixos/secrets/kotori.env" ];
environmentFiles = [ /root/secrets/kotori.env ];
autoStart = true;
};
};

View file

@ -1,13 +0,0 @@
#!/usr/bin/env bash
HOST=`hostname`
if [[ ! -z "$1" ]]; then
HOST=$1
fi
if [[ ! -e "hosts/$HOST/configuration.nix" ]]; then
echo "missing config file for $HOST" >&2
exit 1
fi
ln -f "hosts/$HOST/configuration.nix" .