From 951fc190e9c24bd426454849e2b3500229fdde33 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 13 Sep 2016 04:24:17 +0200 Subject: factorio credentials --- .gitignore | 1 + customized/fetch.sh | 2 +- ymir/factorio.nix | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d155d8f7..15eafda5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ configuration.nix config.nix **/\#*\# +factorio-credentials.nix \ No newline at end of file diff --git a/customized/fetch.sh b/customized/fetch.sh index 30d9c9fd..a470b942 100644 --- a/customized/fetch.sh +++ b/customized/fetch.sh @@ -37,7 +37,7 @@ if grep -q 'Location: https://' headers; then set +x else set +x - echo 'Login failed' + echo "Login failed (username: ‘$username’)" echo 'Please set username and password with config.nix,' echo 'or /etc/nix/nixpkgs-config.nix if on NixOS.' echo diff --git a/ymir/factorio.nix b/ymir/factorio.nix index 8fb6c44b..bc47be79 100644 --- a/ymir/factorio.nix +++ b/ymir/factorio.nix @@ -65,6 +65,8 @@ let }; }; in { + imports = [ ./factorio-credentials.nix ]; + services.factorio = { enable = true; saveName = config.networking.hostName; -- cgit v1.2.3