This commit is contained in:
iFargle 2023-07-05 13:39:53 +09:00
parent aefe06468d
commit 3f1490483d
2 changed files with 6 additions and 3 deletions

View file

@ -47,7 +47,10 @@
# Declare a generic configuration using the $hostname variable:
${hostname} = lib.nixosSystem {
inherit system;
specialArgs = { inherit unstable; };
specialArgs = {
inherit unstable;
inherit hostname;
};
modules = [
# Configuration Imports
./hosts/${hostname}/hardware-configuration.nix # Hardware Configuration

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: {
{ config, pkgs, hostname, ... }: {
# Promtail Logging
sops.secrets.promtail-pass = {
@ -37,7 +37,7 @@
max_age = "12h";
labels = {
job = "systemd-journal";
host = "nixos-p1";
host = "${hostname}";
};
};
relabel_configs = [{