forked from DGNum/liminix
fix(modules/hostname): hash the hostname to avoid duplicate services in the db
Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
parent
6970d811e8
commit
8ac3e32b8b
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ in {
|
|||
};
|
||||
config = {
|
||||
services.hostname = oneshot {
|
||||
name = "hostname";
|
||||
name = "hostname-${builtins.substring 0 12 (builtins.hashString "sha256" config.hostname)}";
|
||||
up = "echo ${config.hostname} > /proc/sys/kernel/hostname";
|
||||
down = "true";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue