Compare commits
2 commits
e8f897d76c
...
e74505a986
Author | SHA1 | Date | |
---|---|---|---|
Laureηt | e74505a986 | ||
Laureηt | 3faf0db807 |
|
@ -1,21 +1,28 @@
|
|||
{ ... }: {
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
pages = pkgs.fetchFromGitea {
|
||||
domain = "git.fainsin.bzh";
|
||||
owner = "Laurent";
|
||||
repo = "personal-website";
|
||||
rev = "pages";
|
||||
sha256 = "sha256-ahx9YSKyImQDu7k6/hbgYQdAnw5yInXQ/n14CLWTVkc=";
|
||||
};
|
||||
in {
|
||||
services.nginx.virtualHosts = {
|
||||
|
||||
"laurent.fainsin.bzh" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = "${pages}";
|
||||
};
|
||||
"fainsin.bzh" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/".return =
|
||||
''301 "$scheme://laurent.fainsin.bzh$request_uri"'';
|
||||
};
|
||||
"laurent.fainsin.bzh" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = "/srv/www/";
|
||||
};
|
||||
default = {
|
||||
default = true;
|
||||
locations."/".return = ''301 "$scheme://fainsin.bzh" '';
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ hyprland, ... }: {
|
||||
config.home.stateVersion = "22.11";
|
||||
config.home.stateVersion = "23.05";
|
||||
imports = [
|
||||
hyprland.homeManagerModules.default
|
||||
|
||||
|
|
Loading…
Reference in a new issue