Merge pull request 'fix: security and monitoring improvements (issues 1-3)' (#1) from klaatu/nixos:fix/security-and-monitoring into main
Reviewed-on: https://src.thehellings.com/greg/nixos/pulls/1
This commit was merged in pull request #1.
This commit is contained in:
@@ -21,6 +21,11 @@ in
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
age.secrets.grafana-secret-key = {
|
||||
file = ../../../secrets/grafana-secret-key.age;
|
||||
owner = "grafana";
|
||||
};
|
||||
|
||||
# Bootloader
|
||||
boot = {
|
||||
loader = {
|
||||
@@ -124,7 +129,7 @@ in
|
||||
];
|
||||
};
|
||||
settings = {
|
||||
security.secret_key = "123456789";
|
||||
security.secret_key = "$__file{${config.age.secrets.grafana-secret-key.path}}";
|
||||
server = {
|
||||
domain = "${config.networking.hostName}.shire-zebra.ts.net";
|
||||
enforce_domain = true;
|
||||
|
||||
Reference in New Issue
Block a user