summaryrefslogtreecommitdiff
path: root/nixos/kusanagi.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/kusanagi.nix')
-rw-r--r--nixos/kusanagi.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/nixos/kusanagi.nix b/nixos/kusanagi.nix
index dca07ec..9a43868 100644
--- a/nixos/kusanagi.nix
+++ b/nixos/kusanagi.nix
@@ -50,6 +50,24 @@
swapDevices =
[{ device = "/dev/disk/by-uuid/c78cfb77-75ee-4aae-9b24-b91f8eebb7c2"; }];
+ # Nix-serve for friends on local network
+ services.nix-serve = {
+ enable = true;
+ secretKeyFile = "/var/lib/nix-serve/cache-priv-key.pem";
+ };
+ services.nginx = {
+ enable = true;
+ recommendedProxySettings = true;
+ virtualHosts = {
+ "adnab.local" = {
+ locations."/".proxyPass = "http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port}";
+ };
+ };
+ };
+ networking.extraHosts = ''
+ 127.0.0.1 adnab.local
+ '';
+
# Docker
virtualisation.docker.enable = true;
users.users.lx.extraGroups = [ "docker" ];