This commit is contained in:
Hadi 2024-06-17 23:57:26 +02:00
parent 880ed3d0e9
commit 57eb1c9459
3 changed files with 12 additions and 5 deletions

View File

@ -31,9 +31,9 @@ It's a simple way to manage your system configuration and dotfiles.
git clone https://github.com/anotherhadi/nixy ~/.config/nixos
```
- Change the username in the flake.nix file
- import the guest configuration instead of the `hosts/laptop` one
- import your hardware-configuration.nix into the `hosts/guest` folder
- Copy the `hosts/guest` folder and rename it to your system name
- Change the variables inside your new hosts
..
```sh
sudo nixos-rebuild switch --flake ~/.config/nixos#nixy

View File

@ -26,6 +26,6 @@
sops = true;
obsidian = false;
theme = import ../themes/catppuccin.nix; # select your theme here
theme = import ../themes/windows.nix; # select your theme here
};
}

View File

@ -3,7 +3,14 @@
enable = true;
virtualHosts = {
"test.anotherhadi.com" = {
locations."/" = { proxyPass = "http://192.168.2.22"; };
locations."/" = {
proxy_set_header = [
"X-Real-IP $remote_addr"
"proxy_set_header Host $host"
"proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for"
];
proxyPass = "http://192.168.2.22:80";
};
};
};
};