Update
This commit is contained in:
parent
880ed3d0e9
commit
57eb1c9459
@ -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
|
git clone https://github.com/anotherhadi/nixy ~/.config/nixos
|
||||||
```
|
```
|
||||||
|
|
||||||
- Change the username in the flake.nix file
|
- Copy the `hosts/guest` folder and rename it to your system name
|
||||||
- import the guest configuration instead of the `hosts/laptop` one
|
- Change the variables inside your new hosts
|
||||||
- import your hardware-configuration.nix into the `hosts/guest` folder
|
..
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo nixos-rebuild switch --flake ~/.config/nixos#nixy
|
sudo nixos-rebuild switch --flake ~/.config/nixos#nixy
|
||||||
|
@ -26,6 +26,6 @@
|
|||||||
sops = true;
|
sops = true;
|
||||||
obsidian = false;
|
obsidian = false;
|
||||||
|
|
||||||
theme = import ../themes/catppuccin.nix; # select your theme here
|
theme = import ../themes/windows.nix; # select your theme here
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,14 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"test.anotherhadi.com" = {
|
"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";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user