Compare commits
4 commits
151469500c
...
f5efe91d93
Author | SHA1 | Date | |
---|---|---|---|
f5efe91d93 | |||
c3e051501b | |||
b51cde0014 | |||
c8f2fd50e5 |
5 changed files with 13 additions and 5 deletions
|
@ -26,7 +26,7 @@
|
||||||
users.extraUsers = {
|
users.extraUsers = {
|
||||||
claire = {
|
claire = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
hashedPassword = "$6$Mu47EjsbNTewDkRp$XeQh6rcdvb3BUXzsGqekKImLTrMgnN0VyERoSbpI4rMPlx8oHM9NNeHZtfIiLEaZGtQ9otnbLa54jYse5Iwev1";
|
hashedPassword = "$6$ZyXB0fvcTbScnrM$6YQSr18QlGyjxPwaVrKkJxUShNoX0DjsmhlVnoVZwlELP7r9gSoGskfM4qBF3GSUdtfQOn5TOHIls5QVUmVAW0";
|
||||||
description = "Claire TREHIOU";
|
description = "Claire TREHIOU";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -133,8 +133,8 @@ in
|
||||||
) cfg.services;
|
) cfg.services;
|
||||||
webroot = "/var/www/challenges";
|
webroot = "/var/www/challenges";
|
||||||
email = "paul@nyanlout.re";
|
email = "paul@nyanlout.re";
|
||||||
user = "haproxy";
|
allowKeysForGroup = true;
|
||||||
group = "haproxy";
|
group = "acme";
|
||||||
postRun = ''
|
postRun = ''
|
||||||
systemctl reload haproxy.service
|
systemctl reload haproxy.service
|
||||||
'';
|
'';
|
||||||
|
@ -142,6 +142,8 @@ in
|
||||||
};
|
};
|
||||||
security.acme.directory = "/var/lib/acme";
|
security.acme.directory = "/var/lib/acme";
|
||||||
|
|
||||||
|
users.groups.acme.members = [ "haproxy" ];
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
80 443
|
80 443
|
||||||
];
|
];
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
gitRev = "d9634b4788a69eba897a5efb826f313942a860e2";
|
gitRev = "0ecd242437a00f0ad39d8adb19bfb0ccba5af760";
|
||||||
nixpkgs = fetchTarball "https://github.com/nyanloutre/nixpkgs/archive/${gitRev}.tar.gz";
|
nixpkgs = fetchTarball "https://github.com/nyanloutre/nixpkgs/archive/${gitRev}.tar.gz";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -32,6 +32,9 @@ in
|
||||||
"nixos-config=/etc/nixos/configuration.nix"
|
"nixos-config=/etc/nixos/configuration.nix"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nixpkgs.config.allowUnfree = false;
|
||||||
|
nixpkgs.config.allowUnfreePredicate = (pkg: builtins.elem (builtins.parseDrvName pkg.name).name [ "factorio-headless" "perl5.28.1-slimserver" ]);
|
||||||
|
|
||||||
services.zfs = {
|
services.zfs = {
|
||||||
autoSnapshot.enable = true;
|
autoSnapshot.enable = true;
|
||||||
autoScrub.enable = true;
|
autoScrub.enable = true;
|
||||||
|
|
|
@ -254,6 +254,8 @@ in
|
||||||
database_args = {
|
database_args = {
|
||||||
database = "matrix-synapse";
|
database = "matrix-synapse";
|
||||||
};
|
};
|
||||||
|
tls_private_key_path = "/var/lib/acme/${domaine}/key.pem";
|
||||||
|
tls_certificate_path = "/var/lib/acme/${domaine}/fullchain.pem";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
max_upload_size: "100M"
|
max_upload_size: "100M"
|
||||||
'';
|
'';
|
||||||
|
@ -411,6 +413,8 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.groups.acme.members = [ "matrix-synapse" ];
|
||||||
|
|
||||||
security.sudo.extraRules = [
|
security.sudo.extraRules = [
|
||||||
{ commands = [ { command = "${pkgs.smartmontools}/bin/smartctl"; options = [ "NOPASSWD" ]; } ]; users = [ "telegraf" ]; }
|
{ commands = [ { command = "${pkgs.smartmontools}/bin/smartctl"; options = [ "NOPASSWD" ]; } ]; users = [ "telegraf" ]; }
|
||||||
];
|
];
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
(import ../overlays/neovim.nix)
|
(import ../overlays/neovim.nix)
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# Editeurs
|
# Editeurs
|
||||||
neovim
|
neovim
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue