style(nixfmt): formatting using nixfmt cli tools
This commit is contained in:
parent
b804520f4c
commit
fbe803b928
46 changed files with 2133 additions and 1700 deletions
|
|
@ -1,43 +1,48 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.service.web.portefolio;
|
||||
cfg = config.service.web.portefolio;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg {
|
||||
environment.systemPackages = with pkgs; [
|
||||
nodejs
|
||||
pnpm
|
||||
];
|
||||
users = {
|
||||
groups.web_portefolio = {
|
||||
name = "web_portefolio";
|
||||
};
|
||||
users.web_portefolio = {
|
||||
description = "Utilisateur pour le bot BDE";
|
||||
group = "web_portefolio";
|
||||
home = "/opt/portefolio/";
|
||||
isSystemUser = true;
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg {
|
||||
environment.systemPackages = with pkgs; [
|
||||
nodejs
|
||||
pnpm
|
||||
];
|
||||
users = {
|
||||
groups.web_portefolio = {
|
||||
name = "web_portefolio";
|
||||
};
|
||||
users.web_portefolio = {
|
||||
description = "Utilisateur pour le bot BDE";
|
||||
group = "web_portefolio";
|
||||
home = "/opt/portefolio/";
|
||||
isSystemUser = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
virtualHosts."raphael.parodi.pro" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
root = "/opt/portefolio/dist";
|
||||
index = "index.html";
|
||||
extraConfig = ''
|
||||
try_files $uri /index.html;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
security.acme = {
|
||||
certs = {
|
||||
"raphael.parodi.pro" = {};
|
||||
};
|
||||
};
|
||||
};
|
||||
services.nginx = {
|
||||
virtualHosts."raphael.parodi.pro" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
root = "/opt/portefolio/dist";
|
||||
index = "index.html";
|
||||
extraConfig = ''
|
||||
try_files $uri /index.html;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
security.acme = {
|
||||
certs = {
|
||||
"raphael.parodi.pro" = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue