mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-04-01 09:40:55 +02:00
Corrected use of nginx module
This commit is contained in:
parent
f4f5d6e869
commit
c329cc16fd
9 changed files with 10 additions and 25 deletions
23
flake.lock
generated
23
flake.lock
generated
|
@ -92,22 +92,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixos": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1638371214,
|
|
||||||
"narHash": "sha256-0kE6KhgH7n0vyuX4aUoGsGIQOqjIx2fJavpCWtn73rc=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "a640d8394f34714578f3e6335fc767d0755d78f9",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-21.11",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1638376152,
|
"lastModified": 1638376152,
|
||||||
|
@ -158,11 +142,11 @@
|
||||||
},
|
},
|
||||||
"nur": {
|
"nur": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1638605839,
|
"lastModified": 1638622311,
|
||||||
"narHash": "sha256-f/REgJDMli9MLdvUSU4doYPnKyC8LrAPcj35fwdM5s8=",
|
"narHash": "sha256-Jcn+xvme8X57vmB1THosjYHMhUqMmKiQeLbAI9rtuEA=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "3d7aba159607fb9de8f148e86afbaf585bcfa07e",
|
"rev": "3d283655b37acadb5485768bfb89d68e5263458e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -174,7 +158,6 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"neovim-nightly-overlay": "neovim-nightly-overlay",
|
"neovim-nightly-overlay": "neovim-nightly-overlay",
|
||||||
"nixos": "nixos",
|
|
||||||
"nixpkgs": "nixpkgs_3",
|
"nixpkgs": "nixpkgs_3",
|
||||||
"nur": "nur"
|
"nur": "nur"
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
description = "A flake for my personnal configurations";
|
description = "A flake for my personnal configurations";
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = github:NixOS/nixpkgs/nixos-21.11;
|
nixpkgs.url = github:NixOS/nixpkgs/nixos-21.11;
|
||||||
nixos.url = "github:NixOS/nixpkgs/nixos-21.11";
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
@ -14,9 +13,8 @@
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixos, home-manager, nixpkgs, neovim-nightly-overlay, nur, ... }@inputs :
|
outputs = { self, home-manager, nixpkgs, neovim-nightly-overlay, nur, ... }@inputs :
|
||||||
{
|
{
|
||||||
|
|
||||||
nixosModules = builtins.listToAttrs (map (x: {
|
nixosModules = builtins.listToAttrs (map (x: {
|
||||||
name = x;
|
name = x;
|
||||||
value = import (./modules + "/${x}");
|
value = import (./modules + "/${x}");
|
||||||
|
|
|
@ -22,6 +22,7 @@ in {
|
||||||
}
|
}
|
||||||
|
|
||||||
(mkIf cfg.nginx.enable {
|
(mkIf cfg.nginx.enable {
|
||||||
|
luj.nginx.enable = true;
|
||||||
services.nginx.virtualHosts."${cfg.nginx.subdomain}.julienmalka.me" = {
|
services.nginx.virtualHosts."${cfg.nginx.subdomain}.julienmalka.me" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
|
@ -24,6 +24,7 @@ in {
|
||||||
}
|
}
|
||||||
|
|
||||||
(mkIf cfg.nginx.enable {
|
(mkIf cfg.nginx.enable {
|
||||||
|
luj.nginx.enable = true;
|
||||||
services.nginx.virtualHosts."${cfg.nginx.subdomain}.julienmalka.me" = {
|
services.nginx.virtualHosts."${cfg.nginx.subdomain}.julienmalka.me" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
|
@ -9,8 +9,6 @@ in {
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
luj.nginx.enable = true;
|
|
||||||
luj.nginx.email = "julien.malka@me.com";
|
|
||||||
|
|
||||||
luj.sonarr = {
|
luj.sonarr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -7,6 +7,7 @@ in {
|
||||||
enable = mkEnableOption "activate nginx service";
|
enable = mkEnableOption "activate nginx service";
|
||||||
email = mkOption {
|
email = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
|
default = "julien.malka@me.com";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,7 @@ in {
|
||||||
}
|
}
|
||||||
|
|
||||||
(mkIf cfg.nginx.enable {
|
(mkIf cfg.nginx.enable {
|
||||||
|
luj.nginx.enable = true;
|
||||||
services.nginx.virtualHosts."${cfg.nginx.subdomain}.julienmalka.me" = {
|
services.nginx.virtualHosts."${cfg.nginx.subdomain}.julienmalka.me" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
|
@ -26,6 +26,7 @@ in {
|
||||||
}
|
}
|
||||||
|
|
||||||
(mkIf cfg.nginx.enable {
|
(mkIf cfg.nginx.enable {
|
||||||
|
luj.nginx.enable = true;
|
||||||
services.nginx.virtualHosts."${cfg.nginx.subdomain}.julienmalka.me" = {
|
services.nginx.virtualHosts."${cfg.nginx.subdomain}.julienmalka.me" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
|
@ -31,6 +31,7 @@ in {
|
||||||
}
|
}
|
||||||
|
|
||||||
(mkIf cfg.nginx.enable {
|
(mkIf cfg.nginx.enable {
|
||||||
|
luj.nginx.enable = true;
|
||||||
services.nginx.virtualHosts."${cfg.nginx.subdomain}.julienmalka.me" = {
|
services.nginx.virtualHosts."${cfg.nginx.subdomain}.julienmalka.me" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue