restructure
This commit is contained in:
parent
507f3d3c8c
commit
75e9e63e51
18 changed files with 292 additions and 197 deletions
9
lib/randomHour.nix
Normal file
9
lib/randomHour.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ lib }:
|
||||
hostname:
|
||||
|
||||
let
|
||||
hash = builtins.hashString "sha256" hostname;
|
||||
n = lib.strings.toIntBase 16 (builtins.substring 0 8 hash);
|
||||
in
|
||||
n % 24
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue