global: rename from faucet

This commit is contained in:
514fpv 2024-01-07 22:01:31 +08:00
parent 00218778fe
commit 4185843382
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
31 changed files with 40 additions and 40 deletions

16
global/id/default.nix Normal file
View file

@ -0,0 +1,16 @@
{ pkgs
, lib
, config
, ... }: with lib; let
cfg = config.global.id;
in {
options.global.id = mkOption {
type = with types; str;
description = "systemd machine id";
};
config = {
environment.etc.machine-id.text = cfg + "\n";
networking.hostId = substring 0 8 cfg;
};
}