Compare commits
No commits in common. "f5efe91d93ce1464c2921e40af8c5e7a892a20ab" and "151469500c6c156fd078b4343fe10acc9a16135d" have entirely different histories.
f5efe91d93
...
151469500c
5 changed files with 5 additions and 13 deletions
|
@ -26,7 +26,7 @@
|
||||||
users.extraUsers = {
|
users.extraUsers = {
|
||||||
claire = {
|
claire = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
hashedPassword = "$6$ZyXB0fvcTbScnrM$6YQSr18QlGyjxPwaVrKkJxUShNoX0DjsmhlVnoVZwlELP7r9gSoGskfM4qBF3GSUdtfQOn5TOHIls5QVUmVAW0";
|
hashedPassword = "$6$Mu47EjsbNTewDkRp$XeQh6rcdvb3BUXzsGqekKImLTrMgnN0VyERoSbpI4rMPlx8oHM9NNeHZtfIiLEaZGtQ9otnbLa54jYse5Iwev1";
|
||||||
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";
|
||||||
allowKeysForGroup = true;
|
user = "haproxy";
|
||||||
group = "acme";
|
group = "haproxy";
|
||||||
postRun = ''
|
postRun = ''
|
||||||
systemctl reload haproxy.service
|
systemctl reload haproxy.service
|
||||||
'';
|
'';
|
||||||
|
@ -142,8 +142,6 @@ 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 = "0ecd242437a00f0ad39d8adb19bfb0ccba5af760";
|
gitRev = "d9634b4788a69eba897a5efb826f313942a860e2";
|
||||||
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,9 +32,6 @@ 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,8 +254,6 @@ 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"
|
||||||
'';
|
'';
|
||||||
|
@ -413,8 +411,6 @@ 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,6 +9,7 @@
|
||||||
(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